javascript

Google Bookmark Feeds returning 400 or not loading

I have a google ajax api key and I've been trying to access the various google bookmark feeds but am receiving either a 400 bad request or feed did not load error when attempting to access the feed from my script or code. These are the feeds I've tried accessing: XML:https://www.google.com/bookmarks/?output=xml&num=1000 Fails using...

javascript live text highlighter like diigo.com

Does anyone know how to make a live text highlighter in javascript/jquery? with most script ive seen, you have to select the text first then click highlight. how does diigo.com do it? ...

Google Maps v3: Markerclusterer not being fired?

I have a bit of a puzzle on my hands. I'm Using Google Maps v3 and MarkerClusterer v3. When I load my page, the map appears, the points are all there, but nothing is clustered. If I go to the firebug console and do: markerCluster = new MarkerClusterer(map, markers); Suddenly clustering works. Weirdly, If I put an alert between the m...

read wikipedia url's content using jquery, cross domain network call.

jQuery.ajax( { url:'http://en.wikipedia.org/wiki/Football', type:'get', dataType:'jsonp', success:function(data){alert(data);}, } i want to read wikipedia page from my domain using jQuery, iam doing as above. as expected wikipedia is sending data as pure html, but when we use $.ajax to get cross doma...

What is the the difference in writing different style Script tags?

What is the the difference in writing different Script tags like <script>.... or <script language="javascript">..... or <script type="text/javascript">...........? They all do same things, what is different? ...

Cross Browser Mouse Follow?

My client has requested that they they want a football to follow the mouse on their site. Totally stupid if you ask me, but he's determined to get it done. Problem is all the scripts I have found are old school and are not cross browser. Does anyone know of a solution either in JavaScript or jQuery that will work in all the newest brow...

Highlight live search results

I'm trying to highlight the text that matches the query in a live search using jquery.highlight. The live search works fine but the styling for the highlighting applies then it disappears. Am I doing something wrong? JQuery $(document).ready(function() { $("#search").bind("keyup", function() { var form = $(this).parents("form")...

what is server-side javascript ?????

what is server-side javascript ? can it replace php with server-side javascript? if it exists do extjs has serverside javascript ? ...

date picker in smooth box

hi all, i have used http://www.monkeyphysics.com/mootools/script/2/datepicker calendar for my smarty template site. this site is using smoothbox too. the calendar works perfect in normal pages, and also in smoothbox if ?TB_iframe=true but it not works with hidden div smooth box inlineid ...

Javascript regular expression that ignores a substring

Background: I found similiar S.O. posts on this topic, but I failed to make it work for my scenario. Appologies in advance if this is a dupe. My Intent: Take every English word in a string, and convert it to a html hyperlink. This logic needs to ignore only the following markup: <br/>, <b>, </b> Here's what I have so far. It converts...

No AJAX response text

I think the code is right, but I don't get any response in my second alert. When I go to the website given in the first alert, I get the text I want. Why doesn't it work? <script type="text/javascript"> function getimages(q) { bossimagesrequest = new XMLHttpRequest; var requri = "http://boss.yahooapis.com/ysearch/images/v1/"+esca...

is it possible to do this in jsf?

I have a / group of radio buttons , and a CommandButton Two cases 1)When one of the button is clicked + The command Button is clicked, I should display some other section(say a DIV) and the execution stops. means, The Command Button should not submit the form to the server 1)When NONE of the button is clicked + The command Button is ...

ExtJS's XmlReader field mapping.

Hi , I can't manage to get this Ext.data.XmlReader's CDATA field mapping to work. <script> var store = new Ext.data.Store({ url: '../data/data.xml', // specify a XmlReader reader: new Ext.data.XmlReader({ record: 'entry', fields:[ { name: 'field1', type: 'date', mapping:'field1'}, ...

Is there ANY cross-platform way of validating xml against an xsd in javascript?

As far as I can tell, the only way of doing it is to use the Microsoft DOM object, but as far as I'm aware this isn't universally available, if you're browsing with Firefox on Linux for example. For reasons of security and minimizing network traffic I can't pass the xml to an external tool to validate (much as I wish I could). Is there ...

Hashmaps in javascript from integer keys

I am coding in javascript & I need HashMap type structure . Normally when I need hashmaps , I would use associative arrays only (with strings as keys). But this time I need integers as keys to hashmaps. So if I try to store A[1000]=obj, 1001 sized array is created & A[1001] is put as obj. Even if I try A["1000"]=obj , it still allocate...

how can I dig my variable out of this pit?

I asked a fairly poor question yesterday, but I still have the same general problem. I wanted to add a variable property to an object, and the solution I attempted was to do an ajax request to receive the variable, and then set the property to the response. I think I have tried this at least 100 different ways: Ext.onReady(go); functi...

get Unread Count of Google Reader using Javascript(jQuery)

i'm trying to get the unread count of my google reader using javascript. tried the following: var unreadURL = "http://www.google.com/reader/api/0/unread-count?all=true"; $.ajax({ url: unreadURL, success: function (data) { console.log(data); } }); but im getting a 401. i think i have to authenticate or something...

Protecting client side logic & data

I am coding a data intense web app. So that means I cant be possibly doing any computations on sever- computation after every event involves huge data too large to be sent to sever again & again. So I have to do all execution & keep all data on clint side only. Currently I am using JS to do so. Is there a way by which I can protect my ...

Memory Leaks in Browser

Hi Experts, Please tell me how to find out the memory leak in browser and what is the best way to solve the problem. Is there any guideline for writing javascript to avoid memory leak? And also if you can tell me some problem which you experienced related to memory leak and how did you debug and find out the solution would provide a gr...

SVG problem; updating moving elements is CHOPPY, why?

Drawing more than ~5+ SVG lines with the code below makes performance choppy when moving elements, especially if long SVG lines are drawn. Is this just a natural SVG performance limitation (because of the svg canvas size) or is there something fishy with my code? Project in action can be seen here (only supports Chrome and Firefox so fa...