Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved

Join Date: Feb 2009
Posts: 9
Reputation: hi.meral is an unknown quantity at this point 
Solved Threads: 0
hi.meral hi.meral is offline Offline
Newbie Poster

Using jQuery

 
0
  #1
May 21st, 2009
my basic question is that can i use the jquery insted of php syntax ?

For example i developed a site in simple php, now i want to change the code for security perpose in jQuery..
Can I ??
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 148
Reputation: mschroeder is on a distinguished road 
Solved Threads: 25
mschroeder mschroeder is offline Offline
Junior Poster

Re: Using jQuery

 
0
  #2
May 21st, 2009
They are two different technologies:

php is server-side and will be executed on the server with the results being displayed to the user.

jquery is client-side and will be executed in the user's browser.
the only code it can modify is the html code that is delivered by the server. plus being client-side all a user needs to do is view your source and navigate to your javascript files to see whatever it is you are doing with your code. there is not much if anything secure about it.
If you're question/problem is solved don't forget to mark the thread as Solved!

-- Code I post is usually but not always tested. If it is tested it will be against 5.2.11 or 5.3.0
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 9
Reputation: hi.meral is an unknown quantity at this point 
Solved Threads: 0
hi.meral hi.meral is offline Offline
Newbie Poster

Re: Using jQuery

 
0
  #3
May 28th, 2009
Well i got it.
but now i have a question why should i use jQuery, instead of ajax and javascript.
Infect i know the ajax and javascript both very well and i frequently use both.
So genuinely what’s special benefit of using jquery
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 954
Reputation: essential will become famous soon enough essential will become famous soon enough 
Solved Threads: 131
Featured Poster
essential's Avatar
essential essential is offline Offline
Posting Shark

Re: Using jQuery

 
0
  #4
May 28th, 2009
JQuery lets you write javascript program in a shorter, faster way and also making you dumb...

e.g.
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. var obj = document.getElementById("someId"); // This is a Javascript format.
  2.  
  3. var jQobj = $("someId"); // This is a JQuery implementation, seems alot shorter, compared to Javascript format.

It's up for you to decide which one you will use to create your programs.

But if you're really interested in Mastering Javascript fundamentals, then simply forget about those frameworks and start learning things with a simple function like:
  1. window.onload = function() {
  2. alert("Hello Word!\nAm about to explore the world of Javascript with a simple function called alert!"); // Try more expirements-->
  3.  
  4. // And by the time you're done--you can now write your own frameworks just like JQuery and all other javascript frameworks available out there.
  5. };
Last edited by essential; May 28th, 2009 at 5:49 am.
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 9
Reputation: hi.meral is an unknown quantity at this point 
Solved Threads: 0
hi.meral hi.meral is offline Offline
Newbie Poster

Re: Using jQuery

 
0
  #5
May 29th, 2009
well essential, thanks a lot for such a nice explaination.
I got my answer,
but i dont need to learn plain javascript, bcoz already know.
Not will try on jQuery
anyways thanks a lot
Last edited by hi.meral; May 29th, 2009 at 2:11 am.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC