javascript

cUrl Converting into Javascript possible?

hello, is there a way to convert this into javascript? <?php $url = 'http://www.yourdomain.com/'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $output = curl_exec($ch); curl_close($ch); echo $output; ?> ...

Square bullet bug in DNN / FCKEditor.

i am facing a bug which comes in DNN / FCKEditor after creating a default list. Actually i put my own bullet in custom .. but the default square bullet also comes with this... Please tell me how to remove this bug. i try all CSS logics here. ...

While loop value test

I have an array of objects that contains a key value with true or false. These values start as false but switch to true on completion of their work. I was looking to determine when all the values had completed i.e. all switched to true. Is there a deviation(logic below) on a while loop with a test if statement that may solve this. bas...

Unable to open text file from WebBrowser control

I have a sample application, in which I am trying to load a text file in WebBrowser control. I have a html file through which I am calling Javascript function to open text file. But it is showing me error like; Cannot find 'file:///C:/temp/test%2520page.txt'. Make sure the path or Internet address is correct. File exist at this locatio...

jQuery post works in Chrome but not IE or FF

$.post($(this).attr("action"), $(this).serialize(), function(json) { alert('red'); AddItemAjax(json); }, "json"); This works in Chrome but not IE or FF.. it fails to just run this line of code. Ive made sure it gets to this point but fails when trying the post! (note i have the alert('red'); to let me kn...

Prototype Rounded Corners

Hi Guys, I am using http://nurey.com/corners.html with Prototype framework and trying to get some rounded corner action happening. However, the script I am using Event.observe(window, 'load', function() { if($$('header')!=null) { $('header').Effect.Corner("5px"); } }); Doesn't appear to actually make the corners work ? Can a...

center flash element based on the elements actual size

Hello everybody, I have a problem positioning a Flash element inside a div tag. The problem is, that the flash element is changing it's size based on the user input. I need a way how I can dynamically get the actual size of the flash element, and to change the behavior of the div element the flash is integrated in. actually I want to pl...

How to override or remove a control in Google Map API

I was playing with Google maps for last two days and started understanding little bit about its functionality. I was using Large Map i.e. 700 X 300 resolution map size and i was trying to implement controls used in small maps. eg. var map = new GMap2(document.getElementById("map_canvas")); map.setCenter(new GLatLng(37.4419, -122.14...

How to add target=_blank to all PDF links inside div using jquery?

For example: I want to add target=_blank in any PDF link comes inside this css class "class="newWindow" Before adding script <div class="newWindow" > <a href="pdf1.pdf">link text</a> <a href="pdf2.pdf">link text</a> </div> After adding script <div class="newWindow" > <a href="Pdf1.pdf" target="_blank">link text</a> <a href="Pdf2...

javaScript fire php file and dont wait for reply.

Hello! I am writing some accommodation web-site.I am using PayPal as billing system.Before I redirect the client to the PayPal page I need to insert all relevant data to the MySql database. My question is:how do I fire the php( from the javaScript) without waiting to it´s replay?( and that the fact that the page that fire the php wil...

simply access members of other namespaces

I am using the famous module pattern for creating namespaces however its cumbersome to write ns1.ns2.member to access a member from ns3(ns1.ns2.ns3). I do not like using a shortcut var(_ns2=ns1.ns2) for this purpose also with statement considered harmfull so what is the better to handle this problem? is it possible to combine scope of na...

JavaScript charting library for advanced charting

Background to Question: Software for analysing blood glucose readings for diabetics, typically have something called a "daily modal" chart. This chart type is a line chart showing times of day on the X-axis, blood glucose readings on the Y-axis, and it displays this for a specified date range. So for example, I can see a chart of my da...

Weird Javascript Bug (jQuery) in simple Testpage

Hello, I'm in the process of writing a Mediawiki extension. I'm actually at a very very early stage ;). You can find the code here (okay, i can only submit one link, so imagine a github url) /eugenkiss/discussion-extension I've got a weird jQuery problem that I just can't resolve even by utilising firebug and trying to debug my code. I...

Programatically adding a sort condition to a table in BIRT using JS

Hi, I am attempting to write some script that simplifies table sorting and have been getting quite close but am now wondering if I have found a bug...or have just misunderstood limitations. So my relevant code: var reportRunnable = reportContext.getReportRunnable(); var reportDesign = reportRunnable.getDesignInstance(); var table = re...

javascript html img

hi, im having an img tag in my html when click on image javascript function alerts the image src path.. <image src="angel_wall.jpg" onclick="do_some();return false;" /> ...

Find and change a div using a regular expression in Javascript

I am trying to first find a div using a regular expression (since its class name is somewhat dynamic). Once found, I then need to place the div inside of a fieldset, so I end up having a final output of <fieldset class="..."> <div class="the one I found">...</div> </fieldset> How can I do this in javascript? Much thanks, Steve ...

ASP.NET / JavaScript - Ajax call, how to?

Please be gentle, as I'm still new to web programming and -very- new to Ajax! I've created a C# function which extracts data from an mssql database, formats it to a json string and returns that. Now I need to make a call from my javascript (jQuery) slider through an aspx page that is related to the C# code file. I have actually never d...

What browsers currently support javascript's 'let' keyword?

I'm developing an app and don't have to ever worry about IE and was looking into some of the features present in A+ grade browsers that aren't in IE. One of these features I wanted to play around with is javascript's let keyword I can't seem to get any of their 'let' examples to work in Firefox 3.6 (UA string: Mozilla/5.0 (Windows; U; ...

Can JavaScript remove all toolbars, address line and set size of the window?

I would like to run a browser (Internet Explorer) from a command prompt using a specific web address. As a result of that I would like to see a simple IE window without toolbars and address line. I wonder if JavaScript is able to control "parameters" of windows in which it is loaded. I mean, I want to add some JavaScript into my HTML cod...

jquery .attr("alt")=='name'

Hi all, Can anybody help me letting me know what is wrong with the following code? $(document).ready(function(){ $("img").attr("alt")=='minimize'.click(function(){ alert("he"); }); }); thanks. Addition: Sorry guys, I am trying to add an event to a image inside of a table, so when its clicked it collapse the div under ...