www.webdeveloper.com
Results 1 to 2 of 2

Thread: GET from parent to iframe size limit?

  1. #1
    Join Date
    Jun 2004
    Location
    phoenix, az
    Posts
    5

    GET from parent to iframe size limit?

    I'm sending a simple get to populate the souce of the page's iframe with the proper info:

    <a href="#" onclick="document.getElementById('iframe').src='notes.php?id=1';return false;"><img src="../images/icon_doc.gif" width="20" height="18" border="0" align="absmiddle" /></a>

    When I begin to add additional values to my GET such as:

    src='notes.php?id=1&record=4

    All values cease to be included in the link. All that comes through is:

    notes.php?

    This is working elsewhere but not to an iframe. Anyone have any ideas?

    Also worth mentioning (maybe) is the fact that there are two links to the iframe that are adjacent to one another. Here is the entire snip:

    <div class='leftBold'>Agent: </div><div class='rightTined'><a href="#" onclick="document.getElementById('iframe').src='agent_assign.php?agent_id=<? echo $agent_id ?>&function=view';return false;"><? echo $agent_name ?></a><a href="#" onclick="document.getElementById('iframe').src='agent_notes.php?id=<? echo $id ?>';return false;">&nbsp&nbsp;<img src="../images/icon_doc.gif" width="20" height="18" border="0" align="absmiddle" /></a></div><br>


    TIA, Jeff
    Last edited by jmurch; 01-31-2008 at 11:43 AM.

  2. #2
    Join Date
    Jun 2004
    Location
    phoenix, az
    Posts
    5

    Solved

    This was a stupid but unforseen error. As part of development I created the parent link and when I click the link let the iframe populate with a 'page not found' error since the iframe src file had not been created yet.

    I checked the properties to see if the proper entire url was sent or not. When the ?get_value was over a certain length (sorry didn't care what the exact length was) everything after the ? dropped off.

    When I created the target file for the iframe src everything worked as it should.

    It seems that the browser kicks in the error when the page is not found but will continue to collect the url info to display in the properties for a moment longer than it takes to realize that the file is not there.

    Jeff

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles