AJAX :: Passing POST Vars In IE7/IE8?
Jul 12, 2010
Note: answers along the lines of 'use jquery' or 'use (insert wellknown framework)' is not helpful.Frameworks such as jquery includes alot of extra code which is not nessary at all for what I am doing. 'But, you can include one from Google', yes that may be the case, but I prefer to keep to my own code. With that in mind, lets proceed to the problem.
I have an ajax call which doesn't pass POST vars through on IE7/IE8, but only on odd occasions. It appears to be extremely random and the majority of the time it does work. I am had a look at jquery and cannot see much difference in the way it works compared to this custom one.
[Code]...
View 3 Replies
ADVERTISEMENT
Jun 22, 2010
function ShowAvailability() {
View 1 Replies
View Related
Dec 16, 2010
I am trying to get some data sent as an array, but it keeps converting it to a sting.
[Code]...
View 1 Replies
View Related
Nov 23, 2005
I am doing this project. It is a flash app that the final output will open a borwser window. The flash app will send vars in the URL, ex/invoice.html?num=1&blablabla=blabla). In the HTML doc there will be a template invoice that I need to replace some of the content (prices) with the sent GET / POST vars.
It all needs to be client side that's why I need someone's javascript help. the app needs to be able to run without internet or any server side processing. so I figured some javascript would work.
View 3 Replies
View Related
Jul 22, 2009
This sends variables to the page okay (on a version without the onClick, opening a normal page).
Problem seems when onClick is added: where the # would normally be following the url to open the popup from colors.htm
PHP Code:
if ($row_results['Mcolor']> 2) {echo'<a href="http://www.mysite.com/colors.htm?UsrID='.$row_results['UsrID'].'" class="linebar" onClick="MM_openBrWindow('../s/shades.php','','status=yes,scrollbars=yes,width=620,height=450')">more</a>';}
Is there always a conflict between javascript and php when sending vars since javascript is client side and php is server side? Is there another way to size the opened page, for instance, on... /shades.php itself? - Only doing the popup for this reason.
Inserted this in head of the destination page; shades.php itself, but not as a function. Might there be a way to activate this when the page loads, without onClick of a button from prior page?:
Code:
<script>
windowresize.To(400, 600);
</script>
View 7 Replies
View Related
May 26, 2010
I have now a form inside a form which of course doesn't work. I need to have a way of getting specific field data without posting till the whole form is done.
For example,
the form contains several items but a specific section for part quantities allows the user to enter the quantity and then click on the "Add Part Nums" button to get a form in a popup that has entries for part numbers based on what the quantity was in the first form.
I have this part working perfectly but it's a form inside a form so it only works when I comment out the outer form tags.
Is there a way to submit the quantities fields only and get the pop up and then later submit the entire form? A way to do this without having a form tag for the inner part?
View 3 Replies
View Related
Aug 27, 2010
I'm building a comment system modeled after Tumblr's, where each post will have it's own comments. I've modded a system from 9lessons and am having an issue implementing it for multiple instances on a page. Each post has its own ID, so I'm trying to set this up using the post's ID. It works fine for a single post, but when there's more than one on a page it doesn't work.
Code Javascript:
<html>
<head>
[code]....
View 3 Replies
View Related
Feb 23, 2009
I want to pass window size variables to javascript's window.open() function from a flash movie (actionscript) to javascript embedded in an html page. The idea is to generate a pop-up window when the user clicks a button in the flash movie. I've programmed the flash movie button like this:
on (release) {
getURL("javascript:open_win('http://www.mysite.com', winfeatures)"); }
where winfeatures is a string containing the pop-up window options, e.g. width=400,height=300,resizable=1 . I have 'traced' the string to make sure it is formed properly. These variables may change so I don't want to just insert them verbatim as the arguments. They are read from an xml file and made into a string - e.g.
(var winfeatures:String = "width="+myxml.attributes.width+",height="+myxml.attributes.height);
In the html page I have the following javascript:
<SCRIPT LANGUAGE=JavaScript>
function open_win(URLtoOpen, windowFeatures) {
newWindow=window.open(URLtoOpen, "myWin", windowFeatures);
}
</SCRIPT>
but it's not working. It seems the windowFeatures isn't being read (or read properly) and the pop-up opens with a default size.
View 2 Replies
View Related
Jul 11, 2011
I'm using ajax to get multiple vars from a database and would like to show the vars in different parts of my page but everything is shown all in the same spot with the div.
An example is I'm pulling a home number and an email from a database and want to show them in different spots.
I have it working but I have to make a seperate ajax(), url, for each var which I don't think is very efficient!
[URL] you can test the search out by typing 000-000-0000 into phone or bank into the name field and tabbing through both input fields.
index.php
<!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" xml:lang="en" lang="en">
<head>
[Code].....
View 2 Replies
View Related
Mar 24, 2007
I want to load some pages generated with the server (ASP) and assign
their html results to JavaScript, so users could click the links and
the content of any selected page would show up immediately, making no
requests.
So, I have one main page called mainpage.asp which, I think, should
get all subpages with content, names are subpage1.asp, subpage2.asp,
etc. I tried ASP's XMLHttpRequest to get content of all sub pages and
assign html result to JavaScript variables. But I realized that MS
XMLHttpRequest does not get session protected pages. I mean that if my
subpage will generate output with session only, then even if the
session exists, MS XMLHttpRequest does not see it.
Anyway, this trick did not work. If I include these subpages in
mainpage.asp under a hidden field, this may be a solution but I do not
see it good enough yet.
What would you recommend? How would you assign subpage's html code to
JavaScript variables or array of variables?
View 3 Replies
View Related
Aug 17, 2010
I want to run an external function outside the post.
This is what I have currently.
On success of the post I want to run the setGrandTotal(); function which will do some calculating for me.
View 1 Replies
View Related
Apr 8, 2002
i have 2 file.. the 1st file have this code :
document.write('<form name="fHtmlEditor" method="GET" action="">');
document.write('<textarea name="EditorValue" style="display: none;">' + editorvalue + '</textarea>');
and there button when onclick will open new window, i need to pass vars from there to the opener window !
<script>window.opener.document.fHtmlEditor.EditorValue.value="dcd";</script>
i got no error and no result !
View 11 Replies
View Related
Jul 27, 2011
Am calling Webservice in one ajax post, In the success funtion am calling another another method in same webservice through another ajax post method. First ajax post is getting called and returning the string from the webservice method but the inner ajax call is not getting called. I have placed the code here.
[Code]...
View 1 Replies
View Related
Oct 2, 2009
I have a div on my page that is populated by a php calendar. The calendar also has month and year input fields so that the user can browse to different months. I would like to create a jquery function so that, when a user changes the month or year field, the div reloads the calendar and passes the selected month and year variable back to the php script. Here is what I have on my page:
<head>
<script type="text/javascript">
function startCalendar(month, year) {
[code]....
View 1 Replies
View Related
Aug 15, 2011
I am trying to create a button on a webpage with HTML/JS that upon clicking will 1) pass a single variable into my python script and 2) run the script. The single variable to be passes is already a declarative variable in the html page.
var userid=urlvar['userID'];
I have an instance implemented using cgi-bin that takes some user information from the form (detailed below A) and calls a python script (see below B) to return a new page displaying that information. I am looking for a way to pass the value from var userid as the "form.value" and then use that value for some specific processing objectives already designed (I have no need to return any information to the webpage).
A---In the html page:
<form method="POST" action=http://ip_address/cgi-bin/test_doneButton.py>
<p>Your first name: <input type="text" name ="firstname">
<p>Click here to submit form: <input type="submit" value="Yeah!">
[code].....
View 1 Replies
View Related
Sep 3, 2010
There are different ways by which values of variables can be passed between forms. One of the ways is to use the setTimeout to pass the values or data. Here the biggest advantage is we can pass data to a different site even running automatically.I would need from someone a bit of help to pass the variable links from form1 to variable strLink in form2 using SetTimeout.We have the following schema:An options select menu where value of the option, sent with a submitted form, is specified with the value attribute. In the absence of a VALUE attribute, the value is the content of the option element.
<html>
<head>
</head>
[code]....
View 11 Replies
View Related
Sep 15, 2009
Im using $.post and have a lot of repeating elements I need to post like the cat elements in the example code below.
I could use a loop in some way to add the repeating elements rather than listing them one by one.
$.post("save.php",{
id:$('#id').val(),
save:$('#submit').val(),
name:$('#name').val(),
[Code].....
View 3 Replies
View Related
Oct 23, 2010
I can't seem to get a variable declared from within a post callback, so that I could manipulate my script accordingly. I have delete.php, that deletes an id from a mysql db. If it fails, I want the script to stop and display the error. The .php script echos an "ok" if everything went fine, if not - it echos the error.var abort_error; // set the error variable
$.get("delete.php", { delete: $(this).parent().parent().parent().attr('id') },
function(data){
if(data != 'ok') {
[code]...
View 1 Replies
View Related
May 26, 2010
I have several form inputs with a submit link in a modal page, and when I click the submit link I call this function to download a personalized pdf with the GET params.
function download(){
window.parent.document.location = "admin.php?controller=Cat&action=downloadPDF&title=" + $("#title").val() + "&author=" + $("#author").val() + "&coment=" + $("#coment").val();
[code]....
View 2 Replies
View Related
Feb 5, 2010
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.
View 2 Replies
View Related
Jan 15, 2010
i need to post data from a form to a page on another domain, without leaving the current page.I am using ASP as a server language.
View 9 Replies
View Related
Jan 14, 2012
why to use the .post instead of .ajax?
View 2 Replies
View Related
Jan 17, 2010
I posted this problem in the old mailing list, but I thought Id try here with a larger set of eyes.
My issue seems to concern webkit browsers. I am sending information from a form with a jQuery click function. I am loading the response from one form that is a DIV called rightContent to the same DIV and passing the
[Code]...
View 2 Replies
View Related
Aug 11, 2011
IE does not seem to make the post using the following code:
$(function(){
$("#update").click(function(ev) { var target = $(ev.target); if (!target.hasClass("add_btn")) { return false ; }
var li = target.parents("li"); var _title = li.attr("data-title");
[Code]......
View 2 Replies
View Related
Aug 5, 2011
I am building a web app that uses alot a jquery including a function that reaches out to a webservice using $.ajax to grab data and return to tdata to the web app. The function that makes the call is outside the ready block but is called in the ready block to make it run on the load. After the load I use a timer to keep calling the function to keep things up to date. But after the first run the function does not seam to work. This might sound wierd, but the ajax function appears to run after the initial go, but it always returns the original request, it does not make new request to the server. I use fiddler and watch what going on and after the initial run method it doesnt make any other calls even though I see the ajax method being stepped through using debugging software and see the AJAX call being attempted and returned successfully.
var REQUESTURL = '/citizenQuestionWCF.svc/';
var prOptions = '';
$(document).ready(function () {
getQuestions();
[Code].....
View 2 Replies
View Related
Jul 14, 2009
Is there a way to post from a .net page with server form controls using the jQuery .ajax method? The .net page is expecting the server contols so I'm not sure how to handle it so when I serialize() the form it doesn't know what to do with it.
View 1 Replies
View Related