i'd like to change the URL to like of an FB:Like button dynamically using javascript.
right now i've only been able to change the href attribute of the fb:like tag (i've pasted the code below). but simply changing the href doesn't seems to work. perhaps i have to re-initiate the FB:Like button, but so far i can't figure out how..
funct...
Hi,
I have this bookmarklet, i.e. it does not start with 'http:' but with 'javascript:'. No issue with that, it works correctly.
The problem occurs when I want to deploy this to users. I'd like to present them a link they'll just click to add to their favorites. Whatever methods I use (examples found on the web, or JQuery with jFav), I ...
I would like to implement a Python script which has the same functionality as http://www.greymagic.com/security/tools/decoder/
Is the encoding rule open for this type of javascript code encoding?
Thanks.
An example of this:
<Script LANGUAGE="JScript.Encode">#@~^TBQAAA==-mD~kk9P'8*R0%p\CD,wr[&fP{~xhPz..lH`EFTc+{W*v~Eq!W {*+B~vqZc+GW{E~v8...
I want to iterate through my model values. Following is what I did to achieve this. But the varible count never increments. How can I increment it to iterate throgh my model values?
<script language="javascript" type="text/javascript">
function AddStudentName() {
var StudentName = document.getElementById('txtS...
Im using this history jquery plugin http://www.mikage.to/jquery/jquery_history.html and im trying to inspect the back stack.
I can call this $.historyCurrentHash to return the current hash, but im trying to figure out how to look one step back in the stack.
if i try calling this $.historyBackStack, but i just get an 'undefined'. anyone...
I'm trying to emulate some pseudo-classes and attribute selectors in Internet Explorer 6 and 7, such as :focus, :hover or [type=text]. So far, I've managed to add a class name to the affected elements:
$("input, textarea, select")
.hover(function(){
$(this).addClass("hover");
}, function(){
$(this).removeClass("hover");
})
.focu...
Hi everyone,
I build dynamically my HTML table from database
like that:
for (i = 0; i < nomCols.length; i++) {
retour.append(("<td bgcolor=#0066CC>") + nomCols[i] + "</td>");
}
retour.append("</tr>");
retour.append("<tr>");
try {
s = HibernateUtil.currentSession();
tx = s.beginTransaction();
Query query = s.createQu...
I am using jQuery UI's resizable for nested divs, like so:
<div id="resizable1">
<div id="resizable2">
</div>
</div>
I'm running into a problem where disabling resizable 1 also disables resizable 2. So, if I call the following...
$("#resizable1").resizable("disable");
...then I can no longer resize resizable2 either.
Has an...
Given is a database with locations, we feed those tho the google map api and all points are displayed. Now there is a list of this location right next to the google map. How can i link the places in the list to the dots on the map? Can i just give some kind of ID to each marker?
Like this:
http://www.local.ch/en/q/ubs.html
I want to li...
Hello. I encountered a weird problem when trying to write a cross-browser script. Basically my header looks like this
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
</head>
Then in the body tag:
<p id="hey">Hey</p>
<input type="button" value="attachStyle" name="attachSty...
Hi All,
I need a Continuous integration tool that will support both .Net Unit tests and Javascript unit tests and perform the builds.
It looks like my main options are CruiseControl.NET using JUnit and NUnit or Team City and JS Test Driver.
Are there any other options and which ones have you used or had good or bad experiences with.
...
I'm very interested in developing Ajax based applications. This is, loading almost all of the content of the application via XMLHttpRequest, instead of only some combos and widgets. But if I try to do this form scratch, soon I find some problems without an easy solution. I wonder if there is some framework (both client and server side) t...
I'm a web designer with css experience, but I'm not a JS developer.
I used jqtransform to style a search form ,
the problem is it removes all events from selectors and the search button .
here is the code before jqtransform
<input id="go-search" type="button" name="btn_search" value="search" onclick="searchLocations()" />
and after ...
I wire up Shadowbox dialog provider to my links or button like this:
<%=Html.ActionLink(Resources.Localize.Routes_WidgetsEdit, "Edit", Model.ContentType.ToString(),
new {slug = Model.Slug, modal = true},
new
...
I am making an extension which should take a link as the user input only once. Then the entire extension keeps using that link on various functions in the JS file. When the user changes it, the value accessed by the js file also changes accordingly.
I am using the following but it does not work for me
var pref_manager = Components.class...
I'm using a long-polling iframe solution for a chat script. Unfortunately, this requires me to set document.domain='yourdomain.com' in the iframe and main document, because the iframe is a subdomain call.
The huge problem is...now all my other scripts that use popups and iframes are broken. They now require me to put document.domain i...
so in my php I have something like this
$_SESSION['opened'] = true;
But It will not be set to true until user will perform some actions with some other html\php pages
So I need on some Ajax function to be able get this session variable. And some PHP sample of function to get variable in form ready for Ajax to get it.
so I need someth...
I want to pull feeds for multiple online services (e.g. Tumblr, Google Reader, Delicious) and aggregate them into a single feed to display on my site. I know of services like YQL or Yahoo! Pipes which will combine feeds, but sometimes those services are too slow. I was wondering what the best method would be if I wanted to run this on my...
I want to disable autocomplete for all inputs using jquery ui datepicker without doing this to every input manually.
How could be this done?
...
EDIT2:
I omitted the line that updates the UI "urrentNode.set_checked(checked);", and it run amazingly fast. Apparently this is the reason of that performance bottleneck, what do you guys suggest?
Hello SO,
In short, I'm dealing with Telerik's RadTreeView, and I want enable checking all the child nodes if the user checked the parent...