I need to fetch some result on a webpage, which use some javascript code to generate the part I am interesting in like following
eval(function(p,a,c,k,e,d){e=function(c){return c};if(!''.replace(/^/,String)){while(c--)d[c]=k[c]||c;k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b...
I have looked at jTemplates and it's worth a try. Are there any other template engines other than jTemplates?
...
I'm using multibox 1.4 lightbox to show an enquiry form using PHP.
<a href="enquiry form popuppage link" class='mb3' >
<div align="center">
<img src="images/sendenquiry.jpg" border="0">
</div>
</a>
It opens the form to submit. The problem is I need to close the enquiry form, once after the Thank you alert/print message and n...
I want to change a value of a field say document.getElementById('reloader').innerHTML = updated value from Server
I do not want to use Ajax, PHP, ASP, JSP .. or anything like these.
Is it possible by using simple javascript?
Server is C# 's application made by using HttpListener.
Please question if needed more info.
...
heres what i got so far :
This function is not directly in the html page , its in an external js file , 'main.js'.
function createVBScript(){
var script=document.createElement('script');
script.type='text/vbscript';
script.src='vb/fldt.vbs';
document.getElementsByTagName('head')[0].appendChild(script);
}
the vbs file contains :
...
Hi,
I'm running a Rails Application which gets a lot of traffic at the moment so I started using Page Caching to increase the performance. So far everything works like a charm. But when I tried to also cache search results I run into a strange problem.
My Approach:
Use meaningful URLs for searching and pagination (/search?query=term&...
I have a huge "binary" string, like: 1110 0010 1000 1111 0000 1100 1010 0111....
It's length is 0 modulo 4, and may reach 500,000.
I have also a corresponding array: {14, 2, 8, 15, 0, 12, 10, 7, ...}
(every number in the array corresponds to 4 bits in the string)
Given this string, this array, and a number N, I need to calculate the ...
Hello,
I hope you can help me with this. I've been using jquery datepicker in a modal dialog. After some problems at the beggining (given by the z-index) it works just fine. The thing is that I have in my page content that keeps on being modified via .innerHTML property of the divs. For this case, I'm loading the content of the modal ...
In another question, I asked why it takes so long to remove HTML content from a page with jQuery.
Apparently when removing HTML content from an element, jQuery has to march through each element and do... something.. I don't know exactly what. And this can take a vvery long time for large-ish HTML content.
In an effort to side-step ...
Can I determine the number of jQuery objects on a page?
I want to use the number of elements as a sort of weak benchmark for page complexity. I'm thinking that if I can reduce the number of elements that jQuery knows about , the page might run more efficiently.
Does this make sense?
Is it as simple as doing a * select and countin...
I have the following code:
$('#select_albums').load(document.location.href + "&action=get_albums");
But this is only replacing only the first found div with the id #select_albums from DOM. How do I replace all divs with an id?
...
Same old same old, my javascript runs fine in IE but not with Firefox. I've followed all the forms, checked all the forums and responses, and what I've got coded up should work but it's not. Firebug shows the value as "undefined."
Here's what I've got; it's scaled down from a much bigger application, but it shows the same problem:
<h...
Is it a better practice to retrieve only data from a (java) backend in xml or json format and use javascript to create the display elements (i.e. div, span, etc.) and insert the data into to them or is it better to retrieve and insert a complete "view" (data and html created by the backend)?
For example, let's say we have the following ...
Hi all,
Just a quick question (it's marked as a community wiki)
From experiences, have you found it easier to evaluate your ajax responses using XML or JSON when using ExtJS? Which format is ExtJs better for handling?
I'm torn between them.
Thanks!
...
hi all;
my problem datetime now Add 63 day.
javascript code:
var aDate = new Date();
var ax_year = aDate.getFullYear();
var ax_mon = aDate.getDate();
var ax_day = aDate.getDay();
var axDate = ax_mon + '.' + ax_day + '.' + ax_year;
axDate = now 28.05.2010
i need axDate + 63 day = 31.07.2010 how to make
...
I am working on a page in witch all its contents are scaled by using zoom.
The problem is that when I drag something in the page the dragging item gets a bad position that seems relative to the zoom amount.
To solve this I tried to do some math on the position of the draggable component, but seems that even tho visually its corrected, t...
I'm only going to be able to get each site that wants my widget, to copy and paste the code block in once..
So it needs to be really future proof.
I've thought about this for a while and this is the widget code i've come up with :
<script type="text/javascript" src="http://www.mydomain.com/my-future-proof-widget.js"></script>...
I'm creating a search form using an asp:button control with the urlpostback set to a results page. The problem is, the asp:button uses Visual Basic and the search results from Google require Javascript.
Is there a way to take the data from an asp: textbox in VB and then send it to another page that uses Javascript and use the data?
...
I'm trying to find a resource that has benchmarks of Dojo, jquery, mootools, etc of the most popular javascript libraries.
...
What is the best way to write this function ontop of jQuery.
Background: I'm working on a legacy web app that has lots of issues. It requires us to insert a IFrame to take care of a few "screens". Later this code will be refactored out but for now we need this.
function openIframePage(selectorPath, url) {
if ($(selectorPath).leng...