Fires of Heaven Guild Message Board  

Go Back   Fires of Heaven Guild Message Board > General forums > Development
User Name
Password
Or, use your gamerDNA username: (more...)
ForumSpy Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 08-03-2006, 10:46 AM   #1 (permalink)
Slide
Limey Bastard
 
Join Date: Mar 2004
Location: London innit
Posts: 744
-3 Internets
Scripting DIV's

Anyone know how to dynamically put stuff into a Div tag onclick events or whatever and style with css?

Cheers
Slide is offline   Reply With Quote
Old 08-03-2006, 11:35 AM   #2 (permalink)
Fattyfat
Administrator
 
Join Date: Dec 2004
Location: ftw tx
Posts: 293
+4 Internets
what?

no clue what you want to do, i recommend findign a site that does what you want, and viewing the source.
Fattyfat is offline   Reply With Quote
Old 08-04-2006, 02:39 PM   #3 (permalink)
Zippygoose
Math Enthusiast/Badass MC
 
Zippygoose's Avatar
 
Join Date: Jun 2002
Location: Seattle
Posts: 650
+0 Internets
Send a message via AIM to Zippygoose
There are countless tutorials online, however if you really want to learn I suggest purchasing a book on intermediate javascript and CSS.
Zippygoose is online now   Reply With Quote
Old 08-05-2006, 05:28 AM   #4 (permalink)
Slide
Limey Bastard
 
Join Date: Mar 2004
Location: London innit
Posts: 744
-3 Internets
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.
Slide is offline   Reply With Quote
Old 08-05-2006, 10:36 AM   #5 (permalink)
Zippygoose
Math Enthusiast/Badass MC
 
Zippygoose's Avatar
 
Join Date: Jun 2002
Location: Seattle
Posts: 650
+0 Internets
Send a message via AIM to Zippygoose
I know about 10 different languages quite well not counting the ones I work in every day. Javascript is my least favorite. It's on my hate list right above Assembly.
Zippygoose is online now   Reply With Quote
Old 08-06-2006, 02:50 AM   #6 (permalink)
Slide
Limey Bastard
 
Join Date: Mar 2004
Location: London innit
Posts: 744
-3 Internets
Quote:
Originally Posted by Zippygoose
I know about 10 different languages quite well not counting the ones I work in every day. Javascript is my least favorite. It's on my hate list right above Assembly.
I've been doing webcoding for a long time, but have tended to focus on the backend stuff and left ui/javascript stuff to interface specialists - but i'm out of work now and need to pick this stuff up to help find another job.

It's annoyingly difficult to debug, and the object model is a bit random. DOM Inspector in Firefox helps alot.
Slide is offline   Reply With Quote
Old 08-07-2006, 07:18 AM   #7 (permalink)
Slide
Limey Bastard
 
Join Date: Mar 2004
Location: London innit
Posts: 744
-3 Internets
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 07:20 AM.
Slide is offline   Reply With Quote
Old 08-07-2006, 11:52 AM   #8 (permalink)
Benito Fireslinger
Registered User
 
Join Date: Feb 2002
Location: Georgia
Posts: 333
+0 Internets
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
Benito Fireslinger is offline   Reply With Quote
Old 08-14-2006, 02:21 AM   #9 (permalink)
Slide
Limey Bastard
 
Join Date: Mar 2004
Location: London innit
Posts: 744
-3 Internets
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 02:23 AM.
Slide is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On
uberguilds network



All times are GMT -7. The time now is 01:18 AM.


Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 RC6