Say I have an html page with several contenteditable attributes set to "true". I like to save the new information, like in WordPress. I prefer to use just PHP for this, but a little help from JavaScript is welcome.
I have searched, but I could not find exactly what I was looking for. How can I transmit the edited information to a PHP script, like submitting a form? Is there a $_GET/$_POST variable, can I use JavaScript to realtime update the information by ID's to inputs, or am I completely searching in the wrong direction?
As I understood your question this might be the one(click here) that you are looking for.You have demos and codes available here. Make sure you searched properly before asking such questions.
Related
I'm sure I am running the risk of being told off for being off topic or too vague with this question but after a great deal of research I really don't know where else to start other than the knowledgeable folks on SO.
Here is the general gist of what I want to do:
I have some web software I want to make available to my clients the easiest way possible. From what I have read and understand SaaS is the best option for this. I want to enable customers to sign up, and then copy and paste a segment of code into their site and that is the set up complete. Take this piece of code for example:
setTimeout(function(){var a=document.createElement("script");
var b=document.getElementsByTagName("script")[0];
a.src=document.location.protocol+"myscript.js?"+Math.floor(new Date().getTime()/3600000);
a.async=true;a.type="text/javascript";b.parentNode.insertBefore(a,b)}, 1);
This is code from another site. But from what I understand it asychronously creates script tags and calls an external javascript file from a CDN and appends this to the users web page?
So, if I am right the user will now have a pointer to a javascript file hosted on a CDN. In this file I want to dynamically generate HTML content specific to the user and then append it to the webpage they are viewing. Say this HTML is a form which submits to a database on the CDN via AJAX.
So this is what I want to do. But it is all new to me. I am not even sure if it possible, and whether SaaS using a CDN is the right approach? If anyone could point me to some tutorials or articles about how to set something like this up it would be great. I have done a great deal of research but am finding it to a bit of a minefield of information. It is difficult to know where to start.
Sorry for such a vague question. I will edit and refine as I receive answers to try and clarify things and hopefully help out some other people.
Thanks for your time.
Perhaps look at Google Tag Manager, as a way to inject tags into your content.
I want to create something similar to fiximate but the thing I want to do different is filter by venue instead of FIX version.
Having downloaded the FIXImate for offline use to get an idea of the design. It seems as though the developers used a tool which parses the FIX XML and spits out html pages based on field tag and body.
Does anyone have access to such a tool? Is there another way to design something similar which is less complicated?
Thanks
What you are asking about is not trivial. It is telling that there is a commercial product for this: https://fixspec.com/
I am making a python program that automatically enters information into a form on a website. I looked at a module called mechanize at first but then I realized that it didn't support javascript. Is there any way to take a piece of information and insert it into a "form" on a website that uses javascript?
The website I am using is www.locationary.com.
If you login and then go to a place/business page like this,
http://www.locationary.com/place/en/US/California/Los_Angeles/Z_Pizza-p1001157911.jsp
then you will see a bunch of spots that need to be filled in. I looked at the page source and this "form" uses javascript. I just need a way to fill in those blanks now. Like I said, I tried mechanize and it didn't work but I also googled it and got nothing.
The "form" uses "onclick"
If you could offer any advice, I would really appreciate it.
Thanks.
I think probably the best way to do this is to use a framework that can operate through a browser. There are several options, but the most pythonic is windmill http://www.getwindmill.com/
I've found it useful on a number of projects.
Anyone know of a good Rich Text Editor preferably in jQuery, that has a good interface, is customize-able and easy to integrate in forms where submitting data is crutial?
I am making a website where people would need to send formatted texts..
I tried TinyMCE and i found it too much for what i wanted, then tried NicEdit, found some bugs in it, corrected some but it is a pain to get the typed HTML when i need to submit the form so i am looking for any alternative you might want to offer.
Thanks in advance
Try ckeditor. You can configure exactly which buttons you expose to your users, and it's possible even to have different configuration for differents users. I'm using it and have not found any important bug.
Simple but rich enough http://akzhan.github.com/jwysiwyg/
Anyone have suggestions for creating an extremely simple form verification field using jquery? I need to block basic form spam. Would love to have some type of 1+1= field that us used to make sure it's a human submitting the form. I don't have the abilty to put .php or .asp on the site so it would need to rely on jquery or some other method.
Any suggestions??
It's highly possible the robot script doesn't even have Javascript therefore it would be useless. I don't think this is feasible without a server-side solution.
You cannot solve this issue on the client side (with Jquery). In a spam-submitting situation, the client cannot be trusted.
To solve this issue you will need to modify things server side.
A couple of suggestions that are probably enough
Send a hash of some session variables unique to this user with the form, and validate on reply. This is to prevent replay attacks by detecting bad hashes.
Add fields that should be left blank, and hide them using css. Spam bots will fill them out. Filter out submissions that contain data in these fields.
I've been searching for something like that also and I think I've found something useful that also looks nice:
http://www.webdesignbeach.com/beachbar/ajax-fancy-captcha-jquery-plugin
I haven't tried this yet though.
Regards
Sigersted