I have developed an intranet local site that consists of a home page: index.html which contains an iframe.
Above the iframe, I have a navigation bar that opens pages with target:iframe inside the iframe.
iframe's src is set to a page named home.html and this is the page displayed when you visit the site.
I would like to be able to give users links that point directly to certain pages that populate within the iframe and not instructions on how to get to them via the nav bar. And I am not talking about the pages alone but the parent piece where the navigation bar is (nav and iframe are contained in the index.html)
How can I gather all values from the form (select, input (text, checkbox....), textarea... ) using jquery and send them by post. The number of items is not fixed, I need something that will gather everything that form contains.
By the way this ONLY needs to work in IE, but it is better if it works in all browsers.
I am trying to use it to direct users to a search page based on the values of two drop down boxes. The issue i am having is that the code below works fine on a test page, but not on my test domain (with wordpress theme) and so i was wondering whether there is anything I am doing wrong... Is onclick already defined maybe? I'm not sure how it works to be honest... :(
Is this possible? Also, while I am dreaming, could a web developer extract the frame necessary for the form /review box) and show just that, without the surrounding content? It would be totally awesome if I could extract a live review box and show it an isolated frame.
I just started using jQuery, but i can't get it working. On the index.php page I want a search form, that post's to search.php. Following next, I want that the html of search.php (which will only be a table with the results), is show into the 'results' div in the index.php.
This is the code im using:
The alert's are for debugging, but none of them show's up.
I'm running into an interesting problem. I'm constructing a form that will allow a person to enter text into a textarea and then preview it. Currently, the person has to click preview, look at the text and then use the back button, which causes problems with losing changes/the entire block of text. So my next thought was to allow for a UI dialog box to pop up and to submit the form values via a .load call to my PHP script. This works really well, but I notice if I preview and close the window (either with the X or with escape) more than three times, I start getting a blank window.
On my main page, i m having a link for a page which lets user to upload files to a server.
On the main page itself, i am also taking some other information from the user. Then i am mailing that data to some other user. The problem is, i want to email the name of the file that is uploaded by a user along with the other details. I am able to send all the details which are entered on the main page, but how do i send the file name which i am uploading to the server from a different page?
I have tried to search for the answer to this, but came up empty. I am writing a form checker (and submit) in jQuery, and am testing with Chrome. Once I do my validation, if all is ok, I simply submit the form using...
$("form#courseForm").submit(); and here is my form tag. <form name="courseForm" id="courseForm" action="courseDetail.asp" method="post">
In IE it works fine with either POST or GET methods in the form tag, but in Chrome it will only work with GET.When I try to use POST, the form does submit, but I don't get any data sent to the page at all. The only thing I am doing different than usual, is the form does not have a submit button. I am using a "button" tag and using jQuery to capture the click event. <button type='button' name='courseSubmit' class='blueButton'>Save Changes</button> why the POST isn't sending the data in Chrome? Simple workaround is to change it to a GET and it will always work, but I see that as a bandaid fix, and not really a solution to the problem.
A webpage has a number of questions that a user must answer and each question can be answered using a list of checkboxes. Thus each set of checkboxes (each question) will have a seperate name. The webpage is dynamically generated and I dont know how many questions will be on there nor the amount of checkboxes each question will have.
I know how to obtain the checkbox values using a form and a conventional submit button however what I want to do is put a button below each question and use AJAX to submit the answers for each question therefore the whole page will not refresh once each question is submitted.
which asks 'process_form.php' to process the data, it doesn't seem to send the data in the form to the page. to confirm this, and whilst trying to get the system to work, the 'process_form.php' consists of 2 lines,:
echo $_GET['maker']; echo '123456';
(ie. one line to return a string literal, and one line to return one of the variables which SHOULD be passed by the form)
This results in just the 123456 string being returned.
I have tried several things: loading the script above in the head of the 'parent' html page (ie. which the form is loaded into); - does not properly fire at all;
loading the script 'in-line' in the imported html - this leads to the result given above; running the script in an external script.js file through an onsubmit directive on the form...does not appear to properly fire the script.
I have a working code which allows the user to select one or multiple options from a drop down. Text appears alongside depending on their selection. I need to find a way for another area or text box to be populated depending on the original option(s) selected.
Example: At the moment if the user selects �Orange� as their favourite colour and submits it will display the text �Oranges are Orange� alongside. This is displayed within a <div>. I want it to also display another piece of text, for example �Oranges are a good source of vitamin C� in a seperate <div> and then another <div> showing �You should eat at least one orange a day�.
This must also work with multiple options. I am sure there is a way to use hidden values etc but I am stuck!code...
I found this piece of code online and it's awesome for using the method "post".
But there is a litle problem that i'm unable to fix... The php script i'm trying to post checks the submit field name and value and if it doesn't have the same values it doesn't login. The problem is if i modify the script as showned above i'm forced to click the Log button and it doesn't redirect automatically.