[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Raxan Framework Online Forum • View topic - Javascript student with questions for the experts.

Javascript student with questions for the experts.

Discuss anything that's related to the Raxan framework

Javascript student with questions for the experts.

Postby cnoevil » Tue Aug 25, 2009 2:57 am

Greetings,

I'm kind of a home hobbiest when it comes to web application programming and hope to one day take it to the next level and become useful in somebodys' IT department. But I have a ways to go in that reguard yet. None the less, I'm working on studying Javascript and I stumbled upon the Raxan framework. It seems pretty cool and conceptually I find it rather intriguing so I've started to pull through the code to see what I might learn. Well, I'm running into things I've never seen before, but bare in mind I've only recently started to dig around in php and javascript. If the good folks here wouldn't mind answering a couple of questions to advance my understanding I'd really appreciate it. For example:

1) In the opening line of startup.js I see: "html = Raxan = { // html class object". I'm not familiar with any javascript declarations that look like this. Neither the indentifier 'html' nor 'Raxan' declare any kind of data type. I'm not seeing "var html, Raxan = new Array (or function)...or whatever" This confused me, though I admit that it is easy to do. So I guess my question is: When a class object has no initial declaration to any type of internal javascript variable other that user defined types, does it just default to type "object"?

2) Further down the line I see:

$trigger = Raxan.triggerRemote = function(target,type,val,serialize,opt){
opt = opt || {};

My questions about this is, is Raxan.triggerRemote defined right here in this declaration? And.... Last but not least what does this do: "opt = opt || {};" And is there another way of saying this? If so, why is this code fragment executed this way?

I'm just trying to learn what's going on here about how this framework actually works. I have learned that I don't always have to understand how a library works to find it useful, but do spend alot of time pulling through other peoples stuff in order to learn how things are done because most online tutorials only really can take you so far.

Thanks,
Mark
cnoevil
 
Posts: 3
Joined: Tue Aug 25, 2009 2:11 am

Re: Javascript student with questions for the experts.

Postby raymond » Tue Aug 25, 2009 5:20 am

raymond
Site Admin
 
Posts: 215
Joined: Tue Mar 17, 2009 5:04 am

Re: Javascript student with questions for the experts.

Postby cnoevil » Wed Aug 26, 2009 12:47 am

Thank you so much for the thorough explaination, xwisdom. It really was helpful. Javascript seems a little slippery to me but I'm beginning to gain an appreciation for it's flexiblity. I've been reading and messing about with programming for a while but unfortunately I've skipped around through a number of languages too much, call it fickle I guess. The end result however is that I have a pretty good understanding of theory but lack any kind of syntactical mastery. Another thing though, most of my studying has been in strongly typed languages, mostly java. My interest in programming pretty much centered on the desktop paradigm, but recently my brother-in-law, who just happens to be a manager in an IT department, has convinced me that there are many more jobs and opportunities in the distributed enterprise arena, so if I were hoping to make a move into a new career it would be in my best interest to focus there.

Actually, I'm sure I'll have more questions if you can tolerate me hanging around for a while.

Thanks again,
Mark
cnoevil
 
Posts: 3
Joined: Tue Aug 25, 2009 2:11 am

Re: Javascript student with questions for the experts.

Postby raymond » Wed Aug 26, 2009 3:05 pm

raymond
Site Admin
 
Posts: 215
Joined: Tue Mar 17, 2009 5:04 am

Re: Javascript student with questions for the experts.

Postby zottona » Thu Oct 22, 2009 5:49 am

Is there a way to insert an Image in a Javascript alert popup? I know you can make a javascript popup of an image in a new window. But is there a way to get one in an Alert popup? like <script>alert('[insert image here]');</script> or anything else like that?
____________
~ ~ ~
Last edited by zottona on Thu Oct 29, 2009 5:38 am, edited 1 time in total.
zottona
 
Posts: 2
Joined: Thu Oct 15, 2009 7:12 am

Re: Javascript student with questions for the experts.

Postby raymond » Fri Oct 23, 2009 12:31 am

raymond
Site Admin
 
Posts: 215
Joined: Tue Mar 17, 2009 5:04 am


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest

cron