Jump to content

div tag info

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
techker

techker

    Programmer

  • Members
  • PipPipPipPip
  • 136 posts
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.

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
You can use JavaScript (or one of it's toolkits like jQuery or MooTools) to send that information using AJAX.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
techker

techker

    Programmer

  • Members
  • PipPipPipPip
  • 136 posts
but how would it send it?the information is in div tags

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
You would have to extract the string and send that via AJAX.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
techker

techker

    Programmer

  • Members
  • PipPipPipPip
  • 136 posts
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>