I Have the following code i am trying to redirect the page to the same page but with a int on the link but it keeps coming up with page error.
var done_update = '&updated=1';
window.location = window.location.href.done_update;
Thank you,
...
Hi,
I've got a string like this: 02-09-10, 20:19 (1 dagen geleden). I need the 1 inside the brackets. I used this regex:
myStr.replace(/(.+*)\(([0-9]{1,}) dagen geleden\)/i, '$2')
But that doesn't work... What to do?
Regards, dodo
...
<script>
a = 3;
a = a^a // a = 27
</script>
is there something like that:
...
I have the following JavaScript code:
function createNotification(title, body, canDismiss, callback)
{
//create the container
var nContainer = document.createElement("div");
nContainer.setAttribute("id", "note"+title);
nContainer.setAttribute("class","nContainer");
nContainer.className = "nContainer";
//create t...
I have a 3rd party server side control that generates JavaScript and I'd like to see what methods and properties it exposes.
Currently I just type in an invalid function like asdf123() so VS will break and I can add a watch to the variable, but there are a ton of methods and I don't know what I'm looking for (I'm trying to make the cont...
hi,
i have a change password popup window.i want to send the user name and changed password to the parent window after it has been successfully changed by the popup window and want the popup to be closed after few seconds....but i am not able to call the javascript from the .cs file.i am giving the code..can u help me how to do it...`
s...
Hi Folks,
I created a little proxy node script, which looksup the request.url
and either passes a request to my apache server or uses node to
process/response to this request. I have been successful so far,
everything works fine, but when I enable mod_deflate for the apache,
"strange things will happen".
It looks like node just "cancel...
I downloaded jsbeautify.vim from http://www.vim.org/scripts/script.php?script_id=2727
So where do I put jsbeautify.vim ? In ~/.vim/ or ~/.vim/ftplugin/ ?
After I position the plugin file, I will vim somefile.js containing javascript code without any newlines (difficult to read).
How do I invoke the plugin to pretty the code make it re...
I am new to HighCharts, javascript, and rails. I have a highchart in my rails application. I need to pass the values of the x and y to rails of the point a users clicks on the chart series. I know about the selection event handler but not how to pass data from highcharts to the rails controller. Can someone point me to an example I can l...
Here is what I have:
<script type="text/javascript" src="http://www.polycysticliverdisease.com/html/swfobject.js"></script> <div id="flashcontentab3445" align="center"> You probably do not have the Flash Player (<a href="http://get.adobe.com/flashplayer/">Get Adobe Flash Player Here</a>) installed for your browser or the vi...
I got this code, along with CMS
when I try to add code using prototype 1.6
piece of code will be the first one and it will work
but second not work
this first piece
<script language="JavaScript1.2">
var slidemenu_width='120px'
var slidemenu_reveal='11px'
var slidemenu_top='78px'
var ns4=document.layers?1:0
var ie4=document.all
var n...
$.get('data/animals.xml', function(xml){
var animals = $.xml2json(xml);
alert(animals.dog[1].name +'/'+ animals.dog[1]);
});
the code below runs very well for http://www.fyneworks.com/jquery/xml-to-json/data/animals.xml
but how can get rate data from http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml
according to code block...
Hello my problem is that whenever i load content to an iframe through javascript and jquery it only loads the first time and then i cannot load anything over it.
the function I use is this:
function loadContent(elementSelector, sourceURL) {
$(""+elementSelector+"").attr('src', sourceURL );
}
and i call it through
<li><span><a hre...
Hi,
I would like to show a dialog box using javascript, just like using alert() but the dialog box should have a facebook theme/style.
I am doing it in Facebook IFrame mode.
Must I use FBML mode to show facebook style dialog?
Thanks.
Wilson
...
I'm currently setting the window.location.pathname property to redirect the user to a relative URL. The new URL has parameters, so the line of JavaScript looks like this:
window.location.pathname = window.location.pathname.substring( 0, window.location.pathname.lastIndexOf( '/' ) + 1 ) + 'myPage.xhtml?u=' + selected_user.Username;
Th...
Hello,
I'm trying to add in Progress Bar Pager the extension "Ext.ux.grid.FilterRow".
It works good but the FilterRow is available only for the grid records in the select page.
Is it possible to filter all the grid records and not only the records shown in each page?
I show you what I've done. This is my php page:
<html>
<head>
<...
Each ProcessingPayments() used memory increase. CollectGarbage() not helps. Use Drip to view memory usage, but don't view any DOM leaks.
I use only IE8 and tested on older versions. Other browsers not interested.
How can I decrease growing memory usage while execute this script?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitiona...
I'm using the jQuery Cycle plugin to cycle through some images on a webpage.
Each image also has various meta-data (title, description) that is also displayed on the page. Whenever the image changes, the title and description text also change to the title and desc for that image.
<div id='slides'>
<a href="http://whatever.com">...
I have the following call in my JavaScript:
new Ajax.Request('/orders/check_first_last/A15Z2W2',
{asynchronous:true, evalScripts:true,
parameters:{first:$('input_initial').value,
last:$('input_final').value,
order_quantity:$('input_quantity').value}});
What do I need to do to get Spring MVC (3.0) to handle this?
...
I need to access a method of a web service(its xml file) from my JavaScript code. The web page is on the server hosted in my machine. Does anyone know how I can get this working. Thanks in advance.
...