|
| | #4 (permalink) |
| Limey Bastard Join Date: Mar 2004 Location: London innit
Posts: 742
| Figured it out, I had a block of HTML that I wanted to put into a Div when an event was fired, but of course you cant just throw html at it, you need to parse it down into individual elements. What was really causing the problems was some script i'd snagged to make scrollbars in divs skinnable was colliding with my code. I can code other languages np, so just need to get used to Javascript and have a DOM reference in my bookmarks. |
| | |
| | #6 (permalink) | |
| Limey Bastard Join Date: Mar 2004 Location: London innit
Posts: 742
| Quote:
It's annoyingly difficult to debug, and the object model is a bit random. DOM Inspector in Firefox helps alot. | |
| | |
| | #7 (permalink) |
| Limey Bastard Join Date: Mar 2004 Location: London innit
Posts: 742
| Another question, this time SQL related. Imagine a table (data_table): [ row_id ] [ string_id1 ] [ string_id 2] and another table (string_table): [ string_id ] [ string_value ] I want to write a query that subsitutes both string_id fields with the string values but can only figure out how to do the first one, ie: SELECT string_table.string_value AS string_val1 FROM data_table, string_table WHERE data_table.string_id1 = string_table.string_id AND data_table.row_id = x; Any way to get the second string value without a second SQL query? Last edited by Slide : 08-07-2006 at 06:20 AM. |
| | |
| | #8 (permalink) |
| Registered User Join Date: Feb 2002 Location: Georgia
Posts: 333
| heh this is why i love our cms platform sooo much i dont have to write a single query yet i can do whatever i need with a database =). If you had a mac i would suggest getting Webkit its a really nice CSS/Javascript debugger that completly eliminates the need for firefox. The only testing i do is on IE and Webkit (or camino)
__________________ Archimonde |
| | |
| | #9 (permalink) |
| Limey Bastard Join Date: Mar 2004 Location: London innit
Posts: 742
| I develop in Firefox mainly, then make sure it's working in IE afterwords. Don't have a Mac around at the moment, but test in Konquerer from time to time (when I can be arsed booting my VMWare up) - and thats pretty similar to Safari. Just as an aside, put this demo site together for jobhunting - it's sort of a Magelo for NWN. main site: http://smkd.net/ sample profile: http://smkd.net/profile.php?id=24 Still not finished yet, there's an awful lot of data to handle - but in essence it parses save files and lobs the character data into the database. The file parser was interesting to put together - the file format has all sorts of C datatypes that PHP doesn't even know what to do with. If you check the skill/feat/spell tabs and click on one of the Icons you can see what I was trying to do originally. Last edited by Slide : 08-14-2006 at 01:23 AM. |
| | |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
| |