Type: Posts; User: Belnz
Search took 0.02 seconds.
Really appreciated as it works a treat and in hindsight is so obviously simple :)
Just shows that being able to plan the theory is often so much more important that knowing all the...
I cannot work out how to inbed images in XML and get it to display as an image over xmlhttp.responseXML.
-Is it even possible?
var focalid; //DECLARE GLOBAL VARIABLE!
alert ("Browser does not support HTTP Request")
Really easily sorted after a good nights sleep.
setTimeout always references global variables only. Simple really.
Above has been edited to show the easy fix.
Heya, I'm hoping to do a basic thing yet i canne no get it to work
#&%$) $*&# $#&
Basically I have a php generated form displayed via ajax.
What i want to do is when a user updates a form...
Cool, cheers for the heads up.
will start looking into this JSON
Is it possible to take the responses from one php file and split components of the response to different html elements
Mate i look at this and i see you using an constant which is likely undefined. Surely $noticia[email] should instead be $noticia['email']?
ie. a associative array key/index?
You the man. Thank you so much. I knew I needed two explodes but couldnt wrap my damn mind around it.
Thank you once again :)
$string = "1~2~3 4~5~6";
What i want to end up with is:
$array = 1;
$array = 2;
$array = 3;
$array = 4;
$array = 5;
$array = 6;
Wht do you mean by next page? Are you talking the page from the server or the page at the client side?
Server side use a manual GET, client side just pass the information into a cookie then...
Why not simply upload the file directly as a blob into the database? That way the file content and link cannot be broken as there one and the same.
Your right I don't get what you mean because by setting value='username' etc then the feild will always display 'username' after a reload of the page (submiting forms reload the page too) till...
This is what I do giorgos.
I have one JS function.
<form name="loginForm" action="">
echo "<input type='hidden id='variable' value='$variable' />";
Heya while I haven't seen your code the error must be basic.
Say you have php creating the below code.
echo "<input type='text' name='form1' value='$form1data'>";
All that is perfectly valid...
Ajax is the way.
First drop down box
<select name='CatName' id='selectedcategory' onchange='showsecondddb(this.value);'>
//So what ever is selected is passed to the JS function showsecondddb
Key thing is to understand that the select form resides on the client pc while the database/php resides on the server. That means you need to be able to pass on the clients selection...
I used this basic script from w3 schools yesterday and i works a treat (rather than debugging your code, call me lazy :))
Your logic is faulty. (mental lines of thought not coding lol)
You are creating ID's that JS needs to reference to pass to php that are all identical.
My advise is to.
A: Ditch the hidden input...