FAQ Database Discussion Community


External stylesheet (css) in php

php,html,css,stylesheet,external
I have looked through 4-5 post on stackoverflow regarding this without solving my problem. I have a php file and want to use the css stylesheet I have for the other HTML files. Right now it looks like this: <div style="height: 600px;"> <?php echo "<link rel='stylesheet' type='text/css' href='stylesheet.css' media='all'/>"; session_start();...

How can I use variable in external function in c++? [closed]

c++,function,variables,external
I get an input variable in main function. and I want to use this variable in the external function2 that it already is called as a external function again by function1(like the code below). but this variable is undefined at function2. please help me. thanks for all answers. this is...

Execute an external class from my main class file

android,class,external
I have a main class which manages the ui of my application and other things. There is another class named BluetoothConnection which manages the bt connection. I'm new to java, what I need to understand is how to use this external class! I know that is a very simple question...

JavaScript Only Image Hover

javascript,external,onmouseover,onmouseout
This is purely for learning purposes; I know that CSS would be the preferred method for this situation. I know that in JavaScript, you can use inline event handling to hover over an image, like so: <img src="image.png" onMouseover="src='image2.png'" onMouseout="src='image.png'"> And I know you can install jQuery in your site,...

External PHP to post data in HTML

php,html,css,xampp,external
I have a website Im making. I have made a php file that pulls data from a database and displays it in HTML (the php and html are all within a php file). How do I make it so that I can call the external php file and load the...

Open external link in iframe using drop down menu

php,iframe,drop-down-menu,hyperlink,external
I am using php to read a text file and generate a dropdown menu that will open a link in a new tab when an option is selected <select onChange="window.location.href=this.value"> <?php if ($file = @fopen('data-receive.txt', 'r')) { while(($line = fgets($file)) !== false) { echo "<option style='width:100px;' value='http://{$line}'>{$line}</option>"; } fclose($file); }...

Rails4: How to connect a rails app to an API database?

ruby-on-rails,json,api,external
Not a question anymore I was given this: GET api/Products?apiKey={apiKey} It returns all of the products available among all shops in an airport in this format(application/json, text/json): [ { "ProductShop": { "AirportName": "sample string 1", "ADCShopCode": "sample string 2", "libShop": "sample string 3", "StorePhoneNumber": "sample string 4", "idPoi": 5,...

External script with my template

javascript,angularjs,external
I cant figure out a way, how to make an external script in javascript for external usage, when i have my angularJS form with controller and other dependencies. I made a local angularJS form, which uses angular material design Dialog service and i need to make an external script, which...

How can one synchronize an external application with a DigitalMicrograph script?

events,synchronization,external,dm-script
This question has been inspired by the question 'Call script from command line'. How can one write a script which acts on 'trigger events' in an application other than DigitalMicrograph? i.e. some script functionality should be triggered by an external application....

How to save a changed item to an external file? (Python 3)

python,save,external
I'm fairly new to python, but I'm making a script and I want one of the functions to update a variable from another file. It works, but when I exit the script and reload it, the changes aren't there anymore. For example (this isn't my script): #File: changeFile.txt number =...

moving jquery function to external js file

jquery,syntax,format,external
I have a jquery function that works great hard coded onto the html page right above the head tag <script type="text/javascript" src="js/jquery.js"></script> <script> $(document).ready(function() { $('#side-menu').sidr(); }); </script> </head> however when i move this to the external .js file that is also right above the head tag, it doesn't work....

Calling external program in java with timeout

java,timeout,external
I am facing an issue calling an external program from java with timeout. I got the below code. This program tries to open notepad.exe through java and terminates after 5 seconds. The problem I am facing is that although its terminating the notepad, the java process still remains active (eclipse...

tcpdf include external file with more tcpdf code in it?

php,include,external,tcpdf
OK....Been trying to create a pdf with alot of dynamic content and want to place some specific code in the mix based on which external file I call with include 'external-file.php'; contents of external-file.php $pdf->SetXY(6, 150); $pdf->SetFontSize(10); $pdf->Write (1, 'exampletext ', $link=''); $pdf->Write (1, $row['var1']. ' ', $link=''); $pdf->Write (1,...

iOS Open Document with External App from UIWebVIew

ios,uiwebview,external,document
I have a UIWebView. When a link which contains a document is clicked, I want to open that document in a external app (office, openoffice, etc) but not inside the UIWebView. I know how to do it for emails: - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType { if ([[[request URL] scheme]...

Accessing a external browser with c# [closed]

c#,search,browser,external,element
i was just wondering if you can access an browser externally with c#, and see if there is a certain word is in the webpage? I have done a lot of research, but none that are specific to what my problem is, Thanks in advance :)...

How do I open all links from an external page using InAppBrowser?

javascript,hyperlink,external,phonegap-build,inappbrowser
I have searched the web, youtube, and communities but no solution to this question. I have an app that I am developing using Phonegap Build. I have included the InAppBrowser plugin in my config.xml and works fine with links in the app. The solution or direction I am looking for...

open external .exe over LAN without the run message c#

c#,external,lan
Hi Im trying to open a external .exe in c#. If i try to open the .exe file in my computer like "C:\programs\test.exe" it works well. but if I try to open it in another machine I have to map the drive S:\programs\test.exe , is ok but it prompts a...

Execute external Javascript NodeJS

javascript,node.js,buffer,eval,external
I would like to execute an JS file passed in argument in my NodeJS app (without require each others) Example : $ node myapp test.js test.js console.log("Do some work") test(); myapp.js var test = function(){ console.log("Test working"); here_execute_js_in_process.argv[2](); I tried the simplest option, read file thanks to fs.readFile and eval...

Connecting text relating to array object: how and where?

javascript,arrays,file,external
I am working on a project in which there are a few ways I need to connect an object (a string, specifically) in an array to an additional bit of text amounting to a few sentences. Currently I have a function that creates the array and populates it with values...

iAd external window popup

ios,objective-c,iphone,external,iad
Can someone tell me what I need to type into my ViewController so that when a user might actually end up clicking an iAd banner, that it opens in a separate window rather than inside my app? Currently, iAd banner is all set up working in ViewController.

In general, how expensive is calling an external program?

optimization,external
I know external programs can be called, but I don't know how expensive it is compared to, say, calling a subroutine. By the cost of calling, I mean the overhead of starting the program, rather than the cost of executing the program's code itself. I know the cost probably varies...

How to write the content of external .js files in a js.haml file (Ruby on Rails)

javascript,ruby-on-rails,view,haml,external
I'm using Ruby on Rails framework and I love it. Until now I was using the show.html.haml for my views and everything worked fine. We wanted to add another option of supporting a GET request which consists the post-fix .js. For this purpose we added to the controller another parallel...

Using $compile on external template (templateURL) in Angular directive

angularjs,templates,angularjs-directive,external
I've got a recursive Angular directive that uses a template variable and gets compiled in the link function. Problem is, that my template has gotten really long and out of control and I want to externalize it in an external HTML file (it would also make it easier for example...

Permission denied for ttyACM0 Port in nexus 5

external,modem,ril
I am trying to connect external GSM modem with nexus 5 and send AT command using android RIL layer.I am using android 5.0 AOSP for nexus 5 downloaded from Google source. Error: Permission denied with trying to open ttyACM0 port. i have checked this by changing permissions but still permission...

website 404 error from external webbrowser

xampp,http-status-code-404,external
I can't get access to my website from external over the ip adress. this works: localhost/my_website // shows my web_site https://IP-adress/ // I see xampp startpage this doesn't work: https://IP-adress/my_website //-> I get 404 error when i add to the httpd.config file "listen 443" or "listen 80" the server doesn't...

External CSS not working

html,css,external,internal
I need help again. I'm watching some tutorials, and I have an easy code that works fine with internal CSS, but I doesn't with external CSS. I think I'm doing everything right, since I don't change a single word of the code, excep for the external css reference. Any ideas...

External CSS not being applied, but same code works when pasted as Internal

html,css,external
I'm a newbie learning the ways of html/css via online tutorials. Only now I've run into a little problem that I can't quite figure out, and I've tried suggestions to similar issues from this very site and more. As the title says, my external css file just does not seem...

Could someone explain why my code is giving me the following error in safari?

html,css,xml,embed,external
I have recently been building an overlay system for a display in my lobby. I am using the embed tag as follows: <embed src="flatly.theme/index.html" style="width:237px;height:344px;left:0px;top:0px;z-index:1;position:absolute;"> this is the error I have been getting: [Error] XMLHttpRequest cannot load http://xml.weather.yahoo.com/forecastrss/CAXX0504.xml. Origin null is not allowed by Access-Control-Allow-Origin. (index.html, line 0) If someone...

C# Referencing a data project to create a mock up data solution with NHibernate and SQLite

c#,.net,sqlite,nhibernate,external
I was following this tutorial http://gergroen.blogspot.de/2011/11/nhibernate-getting-started-guide.html and I had no problem with it and everything so far was clear. My problem arised when I tried referencing another DLL where I have some large infrastructure data schemas. This DLL is full of objects to be filled with a Postgres DB and...

Anyone understand external files well?

java,while-loop,external,computer-science
I am supposed to create a program that reads an external file with 3 integers on every line and find the area of a triangle with those three numbers. We haven't learned arrays yet though, so i want to create the program without an array, methods and classes are fine....

Updating a DIV inside a Collapsible in JQuery Mobile only when the Collapsible is opened (eg. load on demand)

html,jquery-mobile,external,jquery-mobile-collapsible
I'm trying to execute a call to an external program to create content in a DIV inside a collapsible in JQuery Mobile, to have some code run when a div in a JQM collapsible appears when the collapsible is opened. I'm trying to use the jquery.appear plugin (https://github.com/morr/jquery.appear) as follows:...

CPP error LNK2019: unresolved external symbol cpp [duplicate]

c++,external,symbol,lnk2019
This question already has an answer here: What is an undefined reference/unresolved external symbol error and how do I fix it? 18 answers Error 1 error LNK2019: unresolved external symbol "public: void __thiscall Sounds::soundBox(void)" ([email protected]@@QAEXXZ) referenced in function _main For some reason i get this error, and i rly...

How do you edit a dependency/external library in android studio? [duplicate]

java,android,dependencies,external,edit
This question already has an answer here: How do I add a library project to the Android Studio? 24 answers There is a lot of information about adding libraries and dependencies, but I haven't been able to find any useful information on being able to actually edit a library....

Reading an external txt file on main.class

java,file,stream,external
I have a litlle question that, I have a blank main class, and the thing is that I want to know how can I read a external .txt file located on the package of main.java (testes package has main.java and LerDaqui.txt) and I want to know how can I read...

svg reference external javascript function [duplicate]

javascript,svg,external,google-chrome-app
This question already has an answer here: onClick within Chrome Extension not working 2 answers I want to have an svg embedded in an html doc reference an external javascript function. I have an html document with an embedded svg file and a link to a js file. I...

Directory not empty java.io.IOException

java,osx,io,external,runtime.exec
I need to launch an external app called TeamViewer from my JavaFX application. So I've TeamViewer.app file which I'm copying to a temporary folder and launching it using: Runtime.getRuntime().exec("open /path/to/Teamviewer.app"); But this is throwing Directory not empty IOException. I also tried launching using shell file where I wrote "open /path/to/Teamviewer.app"...