hey guys is it possible to get information from a div tag?
like in php
$_GET or $_POST
cause i have an ajax script that uses drag and drop and i would like to save the information dragged in the box.and it uses all seperat div tages named.
div tag info
Started by techker, Mar 01 2009 11:08 AM
4 replies to this topic
#1
Posted 01 March 2009 - 11:08 AM
|
|
|
#2
Posted 01 March 2009 - 11:12 AM
You can use JavaScript (or one of it's toolkits like jQuery or MooTools) to send that information using AJAX.
#3
Posted 01 March 2009 - 11:41 AM
but how would it send it?the information is in div tags
#4
Posted 01 March 2009 - 05:00 PM
You would have to extract the string and send that via AJAX.
#5
Posted 01 March 2009 - 05:06 PM
i tryed to things on a seperate page.when you submit it goes to the div.php pahe
<script language="javascript">
var div_thingy = document.getElementById('box101'); //is gives me null
document.write(div_thingy);
var content = document.getElementById('box8').innerHTML; ///does not work
document.write(content);
</script>


Sign In
Create Account


Back to top









