473,383 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

How to use jquery with other js frameworks like YUI, mootools, prototype etc?

Mike Kypriotis
I am creating a program written in JS and need to import data from an external JSON file, and saw that jquery can do it much easier, thing is should I force someone who wants to use it in his site to include jquery just for a little bit of extra functionality? And what if he is already using something else like YUI, won't there be a conflict? I assume that all do about the same things.

P.S. JSON or XML which would you use?
Mar 6 '11 #1
2 2127
dgreenhouse
250 Expert 100+
jQuery is so prevalent these days that it's probable they're already using it.

See this to eliminate conflicts:
http://docs.jquery.com/Using_jQuery_...ther_Libraries

I guess you could write the code using the different frameworks if you're really concerned.

Or, you could use Douglas Crockford's (the js guru) JSON library(s).

See:
https://github.com/douglascrockford/JSON-js
And:
http://www.json.org/js.html (his original article)

I've use it a few times when I didn't want to use a framework.

JSON vs. XML?
It depends!
See:
http://www.json.org/xml.html
http://www.readwriteweb.com/hack/201...son-vs-xml.php
Mar 6 '11 #2
The owner of the site will upload the JSON file (it is a way not to force him to down/upload the js file when data needs to be changed) so it is trusted do I need a parser? Also at
https://github.com/douglascrockford/JSON-js
which file did you use for support on both legacy and modern browsers.
Basically I need a routine which reads the JSON, checks its structure (the writer may have missed a character) and inform of possible invalid format and then gives me the data -which I can then further check with regular expressions (to be precise the program is a banner rotator so for every banner/object I will need 4 attributes: a filename, a url, how much it will show and if it will be shown at all -in other words a flag ), can I do these with JSON (with what I have read it seems the best choice)?
Mar 6 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: MLH | last post by:
A97 topic. Opening a new thread related to some other discussions - > > > just to make sure < < < that installing an OCX or adding an mdb using references other than the BASIC-3 that I use...
2
by: darrel | last post by:
I'm still struggling to find a javascript/ajax library that I want to stick with for a while. JQuery is looking great these days...refined, LOTS of plug-ins, and an active community. Is...
3
by: Piliskner | last post by:
Greetings to all coders. I am new to js and my development is based on using frameworks such as Mootools and libraries such as Wz_jsgraphics. Recently working on my school project I have met with...
10
rizwan6feb
by: rizwan6feb | last post by:
Hi I have created a tabbed interface using jQuery using the code below <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">...
0
by: zeckdude | last post by:
Hi, I am having some issues with my site. I have a main Nav with four links that load in 4 different sections. You can see the page I am working on here:...
4
by: pavanip | last post by:
Hi, I want to popup aspx page using jquery. I have written the following code <a href="Contactus.aspx?TB_iframe=true&height=250&width=200" class="thickbox" >AboutUs</a> I have called...
1
pradeepjain
by: pradeepjain | last post by:
hii, is there any example to learn how to do a parent and child dropdowns where in depending on the parent selected value child dropdown gets populated with data from mysql DB using php and...
25
pradeepjain
by: pradeepjain | last post by:
<html> <head> <script src="jquery.js" type="text/javascript"></script> <script src="jquery.rating.js" type="text/javascript" language="javascript"></script> <link...
7
by: Arulmanoj | last post by:
Hi, I am using VS.Net 2008. I have created a Ajax web application in C#. In the webform1 i have 6 div tags. In each of the div tags i am showing a .acsx file. Here i am able to move betwwen each...
2
by: spk4u | last post by:
how to determine the OS version using javascript other than navigator.appversion??
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.