Jump to content

ThunderAI

Members
  • Posts

    102
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

ThunderAI's Achievements

Member

Member (2/5)

0

Reputation

  1. I have a window (1) that has an iframe (2) and that iframe (2) opens a new iframe (3) and iframe (3) opens a window (4). How do I get the child window to get information from iframe 3? Its not perfect design, but I've tried to reference the iframe (3) name directly, use parent.document, window.parent.document, etc but cant seem to get to the object or get the child window to recognize iframe (3) name. What javascript syntax is correct? Thanks.
  2. All, Did something recently change with Chrome that prevents a user from omni-scrolling an iframe with the middle mouse button? It was possible to utilize the middle mouse button to omni-scroll the content of an iframe but it is no longer possible. It works in Firefox but not in Chrome. Is there a better way to allow a user to scroll the content of an iframe that preserves the screen coordinates of that frame? A quick example <iframe src="page.php" scrolling="yes" width="100" height="100" ></iframe> page.php <img src="test.png" width="300" > What should happen is that since the image is larger than the iframe size I should be able to click and hold the middle mouse button down on the iframe and scroll in any direction, this is no longer possible. What are some ways to fix that? Thanks.
  3. How would I go about changing an xml file with custom tags. All i want to do is open the file, change some numbers and save the file. I'd rather not make an XML scheme for the file and do it that way. for example, I have a file with many tags like this: <tag x="3364.994" y="599.9155" z="0.3324151" /> and I want to alter the x and y values based on some criteria. What would be the best approach to do that? Thanks.
  4. Masonry without the jQuery worked like a charm. Thank you very much for the information. Didn't even knew Masonry existed!
  5. I have committed a crime, I need to float tables near each other to setup a dynamic grid that shows a summary of different database records. One table for each database record. The problem is that the tables will not nest into a nice grid pattern but rather create large gaps in the layout. The tables are all different lengths, and all have the float:left property. Now I know it isn't desired to use tables for layout, but I can't figure out a better way to do this. Any suggestions on how I can get the tables to layout properly and create no empty gaps? Thanks.
  6. How would I do that? onsubmit="openchild600('<?php echo $functionpage;?>','MarkasArchieved')" How would I do that before submit and then have the form submit to that new window?
  7. Yes there is only one menuitem_home. Did something recently change where you MUST call submit by the form ID? this works: document.getElementById('redirect_form_3').submit(); but this wont document.redirect_form_3.submit(); also, this has a really odd consequence in that form targets to new windows wont work. it will ALWAYS go to a new tab regardless s of what I tell it to do. BUT if I click an actual form submit button i will get the window in the right location and proper window size Here is the window problem that will produce two windows function openmapchild(file,window) { childWindow=open(file,window,'status=1,toolbar=0,location=0,menubar=0,directories=0,resizable=0,scrollbars=1,height=700,width=800'); if (childwindow.opener == null) childwindow.opener = self; } <form style="margin-bottom:0;" action="<?php echo $functionworkorderpage;?>" method="POST" name="Workorderreportform" id="Workorderreportform" target="ViewWorkOrder" onsubmit="openmapchild('<?php echo $functionworkorderpage;?>','ViewWorkOrder');" > <input type="hidden" NAME="recordid" ID="recordid" value="<?php echo $disid;?>"> <table border="0" cellpadding="0" cellspacing="0" class="table_bottom_right_container_button" /> <tr> <td class="table_button_bullet_right_dark1_normal" onclick="javascript:document.getElementById('Workorderreportform').submit();" /> </td> <td class="table_button_bullet_lead_dark1_normal" /> <input type="submit" value="Work Order" width="10" class="table_button_bullet_lead_dark1_normal"> </td> <td class="table_button_bullet_gap_dark1_normal" onmouseover="ddrivetip('Open Work-Order');" onmouseout="hideddrivetip();"/> <span class="table_button_bullet_input_dark1_normal"> WO </span> </td> <td class="table_button_bullet_tail_dark1_normal" onmouseover="ddrivetip('Open Work-Order');" onmouseout="hideddrivetip();"/> </td> </tr> </table> </form>
  8. Something has gone very wrong with Google Chrome as of late or I'm missing something. Something that I know worked not too long ago now doesn't work at all and produced an error message that makes no sense to me. <form style="margin: 0px; margin-bottom:0px; margin-top:-1px;" name="menuitem_home" id="menuitem_home" method="POST" action="index.php" /> <input type="hidden" name="menuitemid" value="index.php" /> <table class="Navigationv5table" border="0" cellpadding="1" cellspacing="1" width="<?php echo $icons_width;?>" height="<?php echo $icons_height;?>" onclick="javascript:document.menuitem_home.submit();toggle('navigationdisplaypanel');" /> <tr> <td width="100%" height="100%" align="center" valign="middle"> <img src="images/_interface/menu_icon_home.png"> </td> </tr> <tr> <td align="center" valign="middle"> <font size="3" color="#FFFFFF"> Home </font> </td> </tr> </table> </form> When you click on the table the form should submit, but i get the error. The only way around the error is to create a submit button and click on it. That wont work for what I want to do here and this used to work. What is going on to cause it to generate the error: Uncaught TypeError: Object #<HTMLCollection> has no method 'submit' Thanks.
  9. I am using tables to do a layout of a page and I'd like the tables to float around the other tables but the float: command does not quite do what I am looking for. It creates gaps between the tables the size of surrounding tables and does not fill in the gaps like I think it should. what is the process for making tables or a div float around other div and fill in spaces? like presume you have the following [][][][][][] | [][][][][][][][][] | [][][][][][][][][] | [][][][][][][][][] [][][][][][] | [][][][][][] How do I force the bottom two tables to be besides the larger one and below the top left one?
  10. I am looking for advice on the best way to achieve the following: say you have a player at a given x,y that can be moved to another x,y. The player is on a map that is a grid of 38x38 squares, furthure say you can see a total of 64 squares (8x8 grid). There are an unlimited number of map grids (chunks) which are related to each chunck by a field north, east,west, and south where the value in the field is the ID of the chunk next to it in that direction. If there were no chunks you could just search the database for all squares within sight of the player, but this process is more complicated with chunks as a simple search does not result in all viewable sqaures because some would be in different chunks. How do I find the squares that are viewable in a different chunk from my players perspective? Thanks for anything you can help me with.
  11. This "works", but its certainly not correct: Does someone have a polygon that has a defined color style in the correct format? Thanks. //Create a Placemark and append it to the document $node = $dom->createElement('Placemark'); $placeNode = $docNode->appendChild($node); $placeNode->setAttribute('id',$tmpid); $nameNode = $dom->createElement('name','PolygonName'); $placeNode->appendChild($nameNode); $descNode= $dom->createElement('description', 'test'); $placeNode->appendChild($descNode); $lineNode = $dom->createElement('Polygon'); $placeNode->appendChild($lineNode); $exnode = $dom->createElement('extrude', '100'); $lineNode->appendChild($exnode); $outerboundnode = $dom->createElement('outerBoundaryIs'); $lineNode = $lineNode->appendChild($outerboundnode); $ringnode =$dom->createElement('LinearRing'); $lineNode = $lineNode->appendChild($ringnode); $almodenode =$dom->createElement(altitudeMode,'relativeToGround'); $lineNode->appendChild($almodenode); $coorNode = $dom->createElement('coordinates',$locationstring); $lineNode->appendChild($coorNode);
  12. Does someone have a PHP script that will create a polygon for a KML file? For the life of me I can't seem to get the cost to work so it shows up in Google Earth. Something is very wrong with the code and there are no samples on the internet I can find that show a completed polygon in PHP. Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.