Search:
Type: Posts; User: Belnz
Search :
Search took 0.01 seconds.
Thanks mate!
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...
Heya
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?
header('Content-Type: text/xml');...
var focalid; //DECLARE GLOBAL VARIABLE!
function create_display(item)
{
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
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.
CHeers
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
something like:
function stateChanged()
{
if...
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[0][0] = 1;
$array[0][1] = 2;
$array[0][2] = 3;
$array[1][0] = 4;
$array[1][1] = 5;
$array[1][2] = 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.
//snippet
function create_display(action,param1,param2,param3,param4)
{
xmlHttp=GetXmlHttpObject()
<body>
<div class="loginForm">
<form name="loginForm" action="">
<table>
<tr>
<td> </td>
<td> </td>
<td><a href="#">forgot?</a></td></tr>
<tr>
<?php
echo "<input type='hidden id='variable' value='$variable' />";
?>
<script type="text/javascript">
js_variable= document.getElementById('variable').value;
</script>
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
...
Absolutely.
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 :))
http://www.w3schools.com/php/php_file_upload.asp
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...