external

How do I check for the existence of an external file with XSL?

I've found a lot of examples that reference Java and C for this, but how do I, or can I, check for the existence of an external file with XSL. First, I realize that this is only a snippet, but it's part of a huge stylesheet, so I'm hoping it's enough to show my issue. <!-- Use this template for Received SMSs --> <xsl:template name=...

Access PHP var from external javascript file

I can access a PHP var with Javascript like this: <?php $fruit = "apple"; $color = "red"; ?> <script type="text/javascript"> alert("fruit: " + "<?php echo $fruit; ?>"); // or shortcut "<?= $fruit ?>" </script> But what if I want to use an external JS file: <script type="text/javascript" src="externaljs.js"></script> ex...

I need to call a vbscript function from within an external javascript file :: function

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 : ...

How and when do browsers implement real-time changes to a document's DOM?

My website dynamically embeds an external Javascript file into the head tag. The external Javascript defines a global variable myString = "data". At what point does myString become accessible to Javascript within the website? <html> <head> <script type="text/javascript"> myString = null; external = document.createEle...

Getting the 'external' IP address in Java

Hi I'm not too sure how to go about getting the external IP address of the machine as a computer outside of a network would see it. My following IPAddress class only gets the local IP address of the machine. Any help would be appreciated. Thanks. public class IPAddress { private InetAddress thisIp; private String thisIpAddress; pr...

Open an external XML file

Is it possible to open an external file in Android? (As XmlPullParser) ...

SQL programming interface to external storage application

My application is a non-relational database application with a tcl interface to retrieve data. I would like to add SQL programming interface to my application. Is there any library that converts SQL/PLSQL statements to API calls? It should also support stored procedures. SQLite(Embedded) has 'virtual table' mechanism that suits my req...

Using C struct without including header file

My basic problem is that I want to use some structs and functions defined in a header file by not including that header file in my code. The header file is generated by a tool. Since I don't have access to the header file, I can't include it in my program. Here's a simple example of my scenario: first.h #ifndef FIRST_H_GUARD #define ...

Store xml files in resources folder (WAR), read from code

Hi, I have different XML-files in my 'src/main/recources' folder, and I'd like to read them from my webapplication. File f = new File("file1.xml"); f.getAbsolutePath(); The code gets invoked inside a WebService, and this prints out 'C:\Users\Administrator' when I look inside the Tomcat-server-output. My current solution is to put the...

External XML using AS3.0

Hi, How can i load external xml file in Action Script 3.0, I have seen a tutorial http://webdeginer.blogspot.com/2010/06/external-xml-loading.html, is it right or I have to see any more tutorials. Thanks, K Swamy Vishnubhatla, webdeginer.blogspot.com. ...

jQuery UI sortable - external controls

I have a sortable list inside of a modal dialog (non jQuery UI): <div id="modal"> <ul id="reorderList"> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> <li>Item 4</li> <li>Item 5</li> </ul><!-- /#reorderList --> <button class="save" type="button">Save Order</button> <button class=...

Google Gadgets and external scripts

I'm trying to create my first custom Google Gadget to be used privately in my company's Google Sites intranet. Ideally I'd like to just show a thumbnail that the user can click that will open a modal window with the full video. This requires my including a couple of small JS libraries in my widget. For my widget I created this XML: <?x...

manipulate objects outside svg with javascript-function inside the svg

Hello! I'm embedding a svg-graphic on my website and i'd like to manipulate the rest of the website with javascript-commands which are in the svg - though i'm not sure if this is possible. Let me elaborate: I've got a worldmap in svg, i want to click on a country and this click should run an ajax-call and load relevant information of t...

Lightbox not loading.

// Lightbox $('a.lightbox').click(function () { $.getScript("js/lightbox.js", function () { alert('Load Complete'); $("a.lightbox").lightbox({ 'type': 'iframe', 'overlayOpacity': 0.6, 'width': 940, 'hideOnContentClick': false }...

App Engine and MySQL

I just wanted to ask if we can access an external MySQL server from Google App Engine... ...

organizing external libraries and include files

Over the years my projects use more and more external libraries, and the way I did it starts feeling more and more awkward (although, that has to be said, it does work flawlessly). I use VS on Windows, CMake on others, and CodeComposer for targetting DSPs on Windows. Except for the DSPs, both 32bit and 64bit platforms are used. Here's a...

non-cached RSLs in Flex?

I have a project that is for several customers, the only difference is in the DB, everything else looks the same, except for the main page's text. That is loaded from an external swf file. I created a library, compiled it as an swc, imported it and using it as an RSL. The problem is that if once I've opened the page, and afterwards updat...

Using rel external in jquery fitted plugin opens the link 2 times

Using jquery fitted* plugin, if I put a rel ="external" on the clickable area is successfully opened in new tab, but clicking on the link opens 2 times, how to fix this? for example: i have: <p> text <a rel="external" href="/link">text2</a> </p> text opens perfectly one time, but clicking in text2 the link opens two times the code i...

Lazy loading a plugin (jQuery)

$('a.lightbox').hover(function () { if (jQuery().lightbox) { // required, otherwise lightbox.js will be loaded on hover each time $("a.lightbox").lightbox({ 'type': 'iframe', 'overlayOpacity': 0.5, 'width': 632, 'hideOnContentClick': false }); } else { ...

Can I use external PHP scripts in wordpress?

Hi I'm new in wordpress. I want to create a website to display my product stocks. An I want to use wordpress to maintain the content of the website. I was wondering is there any way of using my own PHP scripts to access my 'product database' information within from WP and display them. Bascially, wordpress will use it's own database f...