Thanks for the suggestion, jpadie. I'm gonna do it that way.
Don't need it now, but still wanna know: there's no way of submiting a file within a form using ajax?
/michel
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the...
In response to johnwm:
1. I'm developing an application and sometimes there are two forms on the page: one on the main area and another one on the right column. Sometimes a user is working on the main area form and decides to upload an image using the right column form, but when submiting the...
What do you mean by "a way to do this using IE"? I need it to work on other browsers too, but if you have any idea on how to make it work on IE please let me know...
/michel
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the...
I have a form that contains a file type input. I'm trying to pass the form input data using ajax. Have no problem with text, radio, checkbox, select or hidden type elements, but so far I've been unable to pass file type input in order to upload an image to the server. Sure I'm not the first one...
Thanks for the url, Chris. Unfortunately the proposed solution didn't work for me. It's nice when you're having problems aligning text inside the div, but not to eliminate the 3-pixel problem I mention.
As I'm dealing with a two-column layout, I solved the problem by unseting margin-left for...
I'm trying to place two divs next to each other, so one would be the nav area and the other the content area. They are both nested in another div that centers the page. Problem is that IE6 shows a 3px space between the two nested divs and I can't get rid of them. It renders nice on FF2, Safari...
I'n not really sure what you want to do, but the variables in your code have two different names:
<?
$width = $_POST['length'];
?>
<form>
<input name ="width" type="text" value="<? echo $length; ?>">
</form>
If your retrieving the width value from the form, just change the name of the...
I solve the problem following Jeff and Dan's suggestions: define the javascript function within the index file and then use eval on the AJAX response to change the value of certain variables that work with this function. Works perfect. Thanks for the advice.
It is possible to have the function loaded on the initial page load as you suggest, BabyJeffy. I didn't want to do this because there are many variables used on the js function that are different for each page I call, so I hoped there was a way I could define the functions in the AJAX response...
Hi. I'm releatively new to AJAX and was hoping someone could shed some light on this problem. I have this page with a link than changes the content of a div using AJAX. The new content includes is a PHP file with a javascript function and html, including a link to execute the javascript...
I guess there is a better approach, but this might work also. Try changing your nav div to this:
<div id="nav">
<img src="images/fbm_nav_right.gif" align="middle" style="float:right">
<img src="images/fmb_nav_left.gif" align="middle" style="float:left">
<ul>
<li><a href="#">home</a> |...
Hi all,
I created a website with a menu div and a content div, both with predefined size and overflow property set to hidden. The latter div's content (text images, etc) overflows the div area horizontally, so I programmed a js function that slides the content (left-to-right and right-to-left...
I am creating a small shopping kart using ajax and have a problem swapping images after executing an ajax script when using firefox. This is how the page should work:
1. Visitors select an item to add to the shopping cart from a list by clicking on an image below the product. This triggers an...
I am creating a small shopping kart using ajax and have a problem swapping images after executing an ajax script when using firefox. This is how the page should work:
1. Visitors select an item to add to the shopping cart from a list by clicking on an image below the product. This triggers an...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.