javascript

How can I draw an image from a pixel-by-pixel color array?

Hi, Is there any way to draw an image from a color array using VML? I have the array of color codes for every pixel in a compressed order. I want to render this with VML using a method like putImageData() in canvas. ...

Watermark text in asp.net?

hi, in my web application i am using javascript for water mark text in textboxes it is working fine but for textbox if TextMode property set to Multiline then the water mark text is not displaying is there any particular reason. this is my code... <TextBox ID="txtone" runat="server" tooltip="Enter comments" onblur="if(this.value==''...

Javascript error: object seems to "disappear" in the middle of a statement

I am experencing a very odd javascript error that I can't figure out how to get rid of. The following code throws an exception saying "'options' is not defined" on line 29. As you can see, the object is defined (or should be...), and it is being used without exceptions on the line right before, in the middle of an array initializer. Th...

Making fullcalendar scroll to the current time?

Simply put, is there a way to have fullcalendar scroll to the current time position in the week view? If it helps, I'm using Ruby on Rails and jQuery ...

packing binary string in NodeJS under 32 bit produces incorrect results

I am using the following "pack" function provided by the excellent php.js project. http://github.com/kvz/phpjs/blob/master/functions/misc/pack.js Running this in Mozilla's JavaScript shell it works fine, but running it in Node produces incorrect strings. example, packing the number 2 as a Double with: pack('d',2); JS Shell produces: ...

overriding form submit event with jquery (1.3.2)

Hi, I cannot find a solution for that, I need to override a previous setted submit event handler. In my example, I have a iframe page, with their own submit (which can have validation errors, and return false). So, I'm need to do: $('<iframe></iframe>') .load(function() { content = $(this).contents() form = content.fin...

How to add a script onLoad ?

Hello, I have to add a Javascript onLoad on a tag : I have a form and I want to disable an input at load. How can I do this with symfony please ? I have to do this only for forms, so I can't add it in the tag of the layout ...

Why does document.write hurt web performance?

I'm told that document.write should be avoided in web page since it hurts web page performance. But what is the exact reason? ...

info window custom close button

Sorry for my English. I need custom buttons in infoWindow. var map; var infoWindow; function initialize() { var latlng = new google.maps.LatLng(47.030698, 28.850098); var myOptions = { zoom : 15, center : latlng, mapTypeId : google.maps.MapTypeId...

How to reduce gap between 2 tables in Javascript

Hey, I am using Javascript for my ascx control. I have 2 tables, one below the other. My code written is like </tr> </table> <table style="border-spacing: 15px;"> But when i execute, it shows almost 2 inch space between them. Can some help me out? Thank you!! ...

trying to add variable for div id. is it possible?

i am trying to use variable inside body. just see below sample code <body> <div class="demo"> <script> var count = 4; for(i=1;i<=count;i++){ var varSlid = "A"+i; $('.demo').append('<div id= varSlid ></div></br>'); } </script> </div> </body> but it is throwing errors. please check and tel...

jQuery DatePick Populating Input - Multiple Clicks Issue

So, the latest dilemma I am facing: I am using jQuery DatePick (not DatePicker) to select dates and populate an input field with these dates. The problem is that the input field will get filled every time I click a date. Therefore, if I click the 23rd, then click it again to DEselect it, it automatically gets added to the input (and th...

Javascript: How to have value in string represented by %s and then replaced with a value

Hi, I know this a really stupid question. I've had a good few years experience with javascript but this one thing seems to have skipped my mind, my head has gone blank and I can't remember what it's called and how I would go about doing it. Basically what I'm looking for is when you have a string variable such as: var error_message =...

Javascript: Grab link from external webpage source and then place it in the specified location

Hi there. I need to create a JScript that does the following actions: 1- Grab a link from an external webpage's source code 2- Remove unecessary string from the link, if needed 3- Place that link in the specified entry Now explained: I have a video hosted in another website and i want to make it play in my own, the problem is that ...

Making these arrows scroll? jquery & html

I am trying to create a little filmstrip with images. I want to be able to scroll horizontally to view all of the images. I have: <div class="gallery"> <div class="back" style="opacity: 0.6;"></div> <div class="thumbs"> <ul class="ad-thumb-list"> <li> <img id="thumb01" src="../jpeg/t...

Login Javascript within PHP

Hi, I have been creating a web scraper for an internal application with PHP but one of the pages has a JavaScript login is there any way of autonomously logging in to scrape the data as usual? (I am using curl to log in to the other two sites) ...

Getting Error "CS1026: ) expected" when trying to combing .js files using SquishIt

I'm trying to combine a couple of javascript files using the SquishIt library. I'm following the steps that are provided here but I'm getting a compilation error stating " CS1026: ) expected" when I try to load the page. The application is an ASP.NET MVC2 app. The code for the SquishIt functionality is: <%@ Import Namespace="SquishIt.F...

Preventing a table's headers from being sortable using JQuery Sortable plug-In

I have an HTML table: <table id="HatedByCSSOnlyGoons"> <tr><td>Header 1</td><td>Header 2</td></tr> <tr><td>Data</td><td>Data</td></tr> <tr><td>Data</td><td>Data</td></tr> </table> and I'm applying the JQuery Sortable plug-In: <script language="javascript"> $(document).ready( function() { $("#HatedByC...

Moving the page

I need to move the page from top to bottom, just like it happens in the best site of the world( stackoverflow), when we change the type of sorting of our questions, it moves the page. How can I get such an effect? I even don't know how to search for information about it, because don't know the keywords, so I decided to ask here :/ Than...

Does SSRS use JavaScript behind the scenes when Exporting to Adobe PDF files?

Does SSRS use JavaScript behind the scenes when Exporting to Adobe PDF files? ...