I have an Accordion working. To advance from section to section, I want to use both click on the Accordion bar or click a button in the section. This works so long as it is a straight pass through. (section=section+1). If the user goes back, out of sequence, to change a field in a prior section, things 'get out of whack'. I need some way to have a variable in the HTML (that does not show to the user) that identifies the Accordion section and pass it to the Accordion activate method. I currently have this in the HTML of each Accordion section.
Currently, the Code will open the child window, show a search box, search for the database and display links, when you click on the link, the parent window will show the variable passed. My question is, how would i change this so that each of the variables displayed would have a php variable that i could submit with a form?
Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html lang="EN" dir="ltr" xmlns="http://www.w3.org/1999/xhtml"> <head>
In a few words it creates a button which when it is clicked it launches the add_text script. Add text script creates a text element for a form and puts a random value for the textbox. Textbox also takes a name which is of array type name="txt". Also form has the post method.
When I press e.g. 4 times the add text field button 4 text boxes are added. But when I click the submit button I get a result of 1 instead of 4 when the print count($txt) is executed. Copy paste the code to see the problem.
Basically the user would see a button on a form that would be something like "add contact"...then a window opens that shows a search window (want to implement something like [URL]) and it would show all the contacts available in the contacts table...then the user selects the contact to add (via a link).
I think i could get it this far, but how would i then pass that $row to the main form so that i can use the fields from that $row in the contacts table on my form?
Here is some code (I did not write) which counts down the minutes allowed on an exam. I want to get the minutes remaining when the user submits the exam and store this in a mysql database. My question is what is the variable which communicates the remaining time? And how do I put it in a form so I can pass it once the user submits?
I have a form that launch a file chooser to allow the user to select a picture. On clicking submit i want to open another page and use the file the user chose and display it. Is there a way to do it without php or asp... i mean just html and jquery?here is what i have up to now:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
I start outside of the external JS file by: reviews.init(); reviews.initialiseContent('comment'); This loads my data and loads + sets the comment tab as default. My problem is that in the external JS file (shown below) the loadTabs variable will not allow me to pass it a variable: contentDiv.onclick = this.initialiseContent; Whenever I pass a variable here it errors, am I setting this up correctly, should I be using prototype for my this. variables? Interested to hear back on if this structure of code is the right way to go about this and also how I can pass a variable in this way :)
I don't understand how to pass the currentId variable to the .addClass method as the above code does not work. If I replace currentId with 'id_1" it works. I also verified that currentId has actually an id value like this:
So after the validation find true, from that validation.php , i want to pass a PHP variable to custom.js( Jquery file).How can i do it.I am getting validation errors as a concatinated string which is returned by php,am trying to append a variable to that string.but its ech oing on the screen.Is it possible to assign a variable in that PHP file and pass to jquery file.