JSON Libraries (stringifier/parser) ?
Mar 27, 2007
I'm interested in finding some JSON libraries for javascript that
contain a stringifier and/or parser. I've been using what appears to
be the reference implementation from json.org (written by Douglas
Crockford?), but I'm running into two problems:
(1) The lack of support for the hasOwnProperty method in Safari
(2) Odd, intermittent errors in Gecko browsers, something to the
effect of "llegal operation on WrappedNative prototype object."
If anyone's familiar with other libraries, or with ideas for working
with these issues in using the json.org library, I'd love to hear
about them.
View 1 Replies
ADVERTISEMENT
Dec 7, 2010
Ok, my jq slider is clashing with light box. Found the answer here: [URL]...but don't know where to insert my code within my head below for it to work ?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--Twitter Feed-->
<script type="text/javascript" src="http://twitterjs.googlecode.com/svn/trunk/src/twitter.min.js"></script>
[Code]...
View 4 Replies
View Related
Jun 24, 2010
I want to do something with JavaScript on my website but don't know how to implement it, but i've found it has already been written by someone and is available to download free as they've put it on net. So is it right morally to use something that someone has already been written? does this count as cheating? does it infringe any copyright?
View 1 Replies
View Related
Apr 5, 2004
Will it possible to do what CBE does with only x? For instance the slider made in the demo using CBE how will that be possible with x?
View 9 Replies
View Related
Jul 23, 2005
i am looking for parser which is seperating java script content.
View 1 Replies
View Related
Mar 21, 2005
I'm wondering if there's a built in function or a script already written to parse a CSS file. I can explain later if anyone is interested in why I want to know.
View 10 Replies
View Related
Nov 17, 2009
There is this technology used in this great website that doesn't stop amusing me, I was just hoping someone could cypher the technology behind it and perhaps reveal it is done with the help of some freely available Library the link to this DSL Internet provider company is:
[URL]
just insert this postal zip code in there to test the service: 68161that is a German Zip coad for the city Mannheim.
View 6 Replies
View Related
Dec 30, 2011
I need to use a couple of third-party Javascript libraries which have multiple JS files. Since @require doesn't work on Chrome, how can I add multiple external JS libraries to a userscript? I'm considering all the possibilities before choosing one.I know you can add jQuery using this method. I have personally used that. But all my other code would have to run inside the main function of this code! I think that would be a problem when there are many libraries to work with.
View 5 Replies
View Related
Nov 23, 2005
Has anyone seen a great tutorial on how to use the dom to properly parse an
xml document? I was hoping to find something in depth that might show maybe
via a pictorial how child nodes and node data etc relates to an example xml
document.
View 8 Replies
View Related
Feb 28, 2006
In order to build a weather prediction page, I was thinking to write
down a Javascript (on the client). This javascript should contact a
server (www.live.com) in ordert to extract the weather forecast.
In summary, I want a javascript based on the html client (internet
Explorer), creating a connection and extractign the data.
This sounds simple but for whatever reason, I cannot manage to extract
any data of this XML page....
View 8 Replies
View Related
May 10, 2006
I have to perform a lot of editing of xml data on the client-side(browser), using javascript. (before i display the data on the browser).
Which xml parser is better for accessing and editing xml elements/attributes through javascript code.
View 7 Replies
View Related
Jul 23, 2002
function qq(str) {
while (str.indexOf('$') != -1) {
str = str.replace(/$[^sW]+/,eval(str.match(/$([^sW]+)/,"$1")[1]));
}
return str;
}
Usage:
var greet = 'hello' var name = 'john'
alert(qq('$greet there $name!'));
Not overly useful, I just hate having to 'string '+var+' more strings' all the time.
There are some limitations (vars must be global, etc), but maybe someone will find it helpful. I certainly have.
View 3 Replies
View Related
Jan 5, 2007
I was wondering if there are any proper, robust libraries or
functions/methods that I don't know of that will escape all the
problematic characters such as single quotes and tabs.
I find myselfwriting x = x.replace(/'/g,"'"); and the reverse over and over again.
Shouldn't Javascript have a built in method to do this? I know of the
escape() function but I am not sure if this is more for urls. What is
the real world way of storing such an "escaped" variable in a database
that will later be read into a javascript variable? :-/
Maybe one could use escape() and unescape() in some way, but some
expert probably could answer this in a snap.
View 1 Replies
View Related
May 7, 2009
This is slightly off topic, but if anybody can solve this, it'll be this mailing list. The basic question is: Is there a way to catch an error thrown in an external js library so that I can continue parsing the remaining javascript on the page? The more detailed version is this: I'm using DotNetNuke (DNN) for my website. A module that I'm using include Scriptaculous, DotNetNuke uses a mixture of jQuery and MS AJAX. To avoid namespace pollution, the DNN folk have used the jQuery prefix for jQuery functions and the $ shortcut for MS AJAX (actually, I think this is the only way you can do this). The third party module uses $ to reference Scriptaculous. I think we all know where this is going: the namespace pollution of $ causes an error to be thrown very early on, leaving parts of my page unstyled (cornerz), dates unformatted, etc, etc, etc. The good news - for me - is this only happens when an admin is logged in. My thought would be to catch the errors and continue parsing <i>my </i>portion of the page.
View 2 Replies
View Related
Feb 23, 2011
I have been trying in vain for many days to resolve a conflict between javascript libraries. My homepage uses jquery horizontal css menubar + a combined mootool and prototype accordian type sliding information box in the middle of the webpage. I find that the highlighter of the css menubar does not work when prototype.js is also loaded on the same page. I have read somewhere that $ should be replaced however I have tried every possible option and none works. I have jquery loading first as it is on my template, with this:
<script type='text/javascript' src='../Web/Templates/jquery-1.3.2.js'></script>
<script type='text/javascript' src='js/example.js'></script>
And my mootool and prototype loades further below like this:
<script type="text/javascript" src="scripts/intro/prototype.lite.js"></script>
<script type="text/javascript" src="scripts/intro/moo.fx.js"></script>
<script type="text/javascript" src="scripts/intro/moo.fx.pack.js"></script>
<script type="text/javascript">
function init(){
var stretchers = document.getElementsByClassName('box');
var toggles = document.getElementsByClassName('tab');
var myAccordion = new fx.Accordion(
toggles, stretchers, {opacity: false, height: true, duration: 600}
);
//hash functions
var found = false;
toggles.each(function(h3, i){
var div = Element.find(h3, 'nextSibling');
if (window.location.href.indexOf(h3.title) > 0) {
myAccordion.showThisHideOpen(div);
found = true;
}
});
if (!found) myAccordion.showThisHideOpen(stretchers[0]);
}
</script>
View 1 Replies
View Related
Apr 23, 2011
The topic of event handler management has been covered in many places in the past. One location is in the contest by PPK (http:[url]....). The winning submission by John Resig (http:[url]...._and_the_winner_1.html) has a few problems, and the commentary on the site seems to gravitate to the implementation by Dean Edwards (http://dean.edwards.name/weblog/2005/10/add-event2/) after the analysis of the Resig code.I was also able to find a few more implementations on stackoverflow from: Bill Ayakatubby (http:[url]....) and Marco Demaio [url].....
Outside of the JavaScript frameworks, what is generally done for supporting event functionality? There are numerous options each with their own benefits and drawbacks. I'm uncertain of which one to use myself. Is there an undeclared de facto?
View 4 Replies
View Related
Aug 20, 2010
I've decided to use the drag and drop option for my gadgets in my home page. The size of the gadgets may vary and user may choose the gadgets and choose the place too. Is there any api or libraries which I can easily configure the drag and drop option in js and php.
View 1 Replies
View Related
Oct 24, 2007
does javascript can parse text-based files, same as vbscript do? I
want do a sorting of large massive of eml files stored in folder: just
to arrange(sort) eml files inside that folder by recipent email ("To:"
field) (there is different data in "To:" field due different senders)
Just want that script parse eml files, looked for specified emails
address or name in 'To' field and arrange this emails at the top. This
probably will require ActiveX.
View 6 Replies
View Related
Apr 20, 2011
I need a solid and reliable RSS parser for my web page. I saw jPage and it looked good except the RSS must be on the same domain - which seems to miss the point a bit.
View 3 Replies
View Related
Oct 19, 2004
Does anybody know of a utility that will return the output of javascript code? Preferably it needs to be usable from the command line in Linux. I want the utility to output something like this:
<ul>
<li>1
<li>2
<li>3
</ul>
From this:
<script>
document.write('<ul>');
for (i=1;i<=3;i++) {
document.write('<li>' + $i);
}
document.write('</ul>');
</script>
View 1 Replies
View Related
May 17, 2010
I want to make a flip book effect using only HTML,CSS and Javascript for smartphones like: Iphone and Android
Anybody have an ideea about wich are the best libraries to use to create a very realistic flip book effect ?
View 3 Replies
View Related
Jan 6, 2011
I would like to write a parser like the one below except I would like it to take characters with the the digits like 345j, 982p0, what would I change to be able to have characters with numbers?
View 1 Replies
View Related
Mar 19, 2010
This one has plagued me for some time now. I am parsing an XML file for a search feature. On my local machine, the code below works fine in FF, but when I upload it, I get an error stating y[0] (the root element) is undefined. I think the problem may be with my onload method but I can't be sure.
function importXML()
I just can't figure out why this works locally and not on the server. IE works fine, but then again it uses the activeXObject method so it should function differently.
View 6 Replies
View Related
Sep 17, 2009
I am using Tablesorter to work with a simple table, but have comeacross an interesting difference in how it works between browsers.One of my columns looks like this:
Row 1
img src="http://dssweb/apdashboard/images/Green.png"
class="client_status" title="1. UAT testing Sept 09"
[code]....
View 3 Replies
View Related
Mar 24, 2011
I'm trying to incorporateRemy's select-chainplug-in into my code, and I'm having troubles. I hopesomeone can take a minute or two to help me. My situationseemed simple, only 2 levels, Products and Programs under each Product. I have the back-end working, so it returns the JSON list of Programswhena Product ID is passed. However, the plug-in keeps failing in the .ajax() function, tripping the error(). It reports a "parsererror", so I know I've messed up something. One wrinkle, I have multiples of the Product/Program pairs on my page, identified as "prod_x"/"prog_x", so I need to dynamically call them. Here is my code:
[Code]...
View 7 Replies
View Related
Jun 26, 2009
can a web parser differentiate between static and dynamic text on a webpage? for example there is a string on a webpage Hello "Fantastic Four"In this "Hello" is a static data and "Fantastic Four" is a dynamic data (say being populated form a database value)Is it possible for web parser to detect whcih is a static and dynamic content?
View 3 Replies
View Related