Since the http referer ($_SERVER['HTTP_REFERER']) won't be set consistently and there will be the support of rel=noreferrer attributes on anchors soon, this could be tricky. But since you are the one to share the links on social media, you could add a get parameter like: myFancyDomain.com?referrer=facebook This is the only...
In the second class, you would call try{ ClassA.Connect(); } catch(Exception e) { } Where ClassA is the name of the class where public static void Connect() is defined. Note that, by convention, the method name should begin with a lower case, so it should be public static void connect()....
cordova,browser,web-applications,website
Since You have already created cordova app, you need to add Inappbrowser plugin to app so you can open your website in it. [Add other necessary plugins] To add Inappbrowser plugin use following command. cordova plugin add org.apache.cordova.inappbrowser Add following line to index.js to open your website link. var url...
website,web-crawler,scrapy,extract
So, a couple things first: 1) the rules attribute only works if you're extending the CrawlSpider class, they won't work if you extend the simpler scrapy.Spider. 2) if you go the rules and CrawlSpider route, you should not override the default parse callback, because the default implementation is what actually...
php,html,website,web-site-project
You put them outside of the directory that is accessed with a link to "http://wwwexample.org/" - the directory where your index.html or index.php file is located is this directory. Like "www/website" in your example. Any directory one step up (like "www") would be suitable, or any additional directory created there....
You could avoid all those attributes with table { border-collapse: collapse; width: 600px; } table td { vertical-align: top; text-align: left } and write a simpler markup <table> <tr> <td>TD 1 must be 200px width </td> <td>TD 2 must be 200px width </td> <td>TD 3 must be 200px width </td>...
try this RewriteRule "^beta\/(.+)" "http://miosito.ext/$1" [R,L] Reference for Rewriting URL: http://httpd.apache.org/docs/2.4/rewrite/remapping.html...
facebook,count,website,comments
First of all, what you are trying to do is not allowed. You are not allowed to reward people for commenting. See 4.5 of the platform policy: https://developers.facebook.com/policy/ That being said, it´s not possible anyway. Facebook comments are black boxes, you don´t have access to them. The only (legal and...
Try $(function() { var img = $("img") , parts = img.height() / 4 , links = ["a", "b", "c", "d"] , regions = $.makeArray(Array(img.height())) .map(function(section, key) { return key + 1 }) , sections = []; links.forEach(function(value, key) { sections.push(regions.splice(0, Math.floor(Math.round(parts)))) }) $("img").on("click", function(e) { var res = $.map(sections, function(value,...
javascript,php,jquery,website,bootstrap
The responsive navbar requires the collapse plugin, I believe this is the problem.
There are a couple of other issues with that code, so you won't get the result you are looking for. Try this code: <html> <head> </head> <body> <script> function prime(number) { var text = document.getElementById("p"); var n = 0; for(var i = 2; i<number; i++){ if(number%i==0){ text.innerHTML = "Your number,...
I ended up right-clicking the page, selecting "View Source", and search for "RSS". Sure enough, it gave RSS url that I was able to use.
Store your products in a database, if at all possible. This way you can use queries to sort and filter your products easily. You are further looking for a dynamic website (http://php.net/manual/en/tutorial.php), using, for example, a .php script getting the desired data in MySQLi, for example (http://www.w3schools.com/php/php_ref_mysqli.asp) With this, you...
A few fixes in your code and some suggestions: <div class="tab-content"> <div id="tab1" class="tab active"> <?php //conection: $link = new mysqli("xxxxxxx", "xxxxxx", "xxxxxx", "xxxxxxxxxx"); if($link->connect_errno){ printf("Connect failed: %s\n", $mysqli->connect_error); exit(); } //consultation: $query = "SELECT * FROM export_workflow.COLLATERAL_MANAGEMENT where DATEDIFF(CURDATE(),ORIGINAL_DEADLINE)>1"; //execute the query. if($result = $link->query($query)){ echo "<table border=3>\r\n"; echo...
javascript,php,html,url,website
function goToHome(){ document.getElementById("viewer").style.display="none"; document.getElementById("inhalt").innerHTML = (…); window.history.pushState({"method": "goToHome"}, "", "/home.html"); } function goToViewer(){ document.getElementById("viewer").style.display="block"; document.getElementById("inhalt").innerHTML = (…); window.history.pushState({"method": "goToViewer"}, "", "/viewer.html"); } function goToRanks(){ document.getElementById("viewer").style.display="none";...
python,c++,sockets,website,client-server
PythonAnywhere dev here: PythonAnywhere only supports web apps using the Python WSGI protocol, which covers almost all of the main Python web frameworks (Django, web2py, Flask, Bottle, etc) but won't work with your own C-based server.
javascript,image,website,attributes,src
Using plain JS you can do: The string that we give querySelectorAll is just a normal CSS selector. var srcNodeList = document.querySelectorAll('[src],[href]'); for (var i = 0; i < srcNodeList.length; ++i) { var item = srcNodeList[i]; if(item.getAttribute('src') !== null){ alert(item.getAttribute('src')); } if(item.getAttribute('href') !== null){ alert(item.getAttribute('href')); } } Here's the fiddle:...
php,html,.htaccess,website,server
Your question is not very clear, but it reminded me that I once was in the situation that my live server didn't accept <? as a mark of the beginning of PHP-code. I needed to use <?php and only then everything worked. Did you check this?...
php,database,codeigniter,website,gallery
get_photo returns null in case of no photos, so you cannot access $photo->result() when $photo is null instead of an object. In your model, do not return null when there are no rows, just return the result set. No need to check number of rows in the model. The $query->result()...
The black is coming from the heimer.css style sheet (background: black): body { background: black url('/heimer.jpg') no-repeat; background-size: cover; background-position: 80% 40%; } Just change it to: body { background: url('/heimer.jpg') no-repeat; background-size: cover; background-position: 80% 40%; } ...
Some search engines do, and some don't. Google for one does include dynamically generated pages: https://support.google.com/webmasters/answer/35769?hl=en Be sure to check your robots.txt file to ensure files you do not want the crawlers to see are blocked, and that files you do want indexed are not blocked. Also, ensure that all...
No.you can't. Native Mobile functionality are totally different from websites. So you can't convert native android app to website type of application. Instead you can use hybrid application like sencha,titanium, jquery which is flexible to support in all mobile platforms and also website.
javascript,jquery,arrays,variables,website
var Height1 = 200; var Height2 = 400; var Height3 = 600; var Height4 = 800; var Height5 = 1000; var Height6 = 1200; var contentHeight = [Height1, Height2, Height3, Height4, Height5, Height6]; var contentSelection = 0; function someFunction(){ $('#content').animate({'height' : contentHeight[contentSelection] +'px'},500); } or simply this: contentHeight = [];...
apache,website,web-hosting,cloud9-ide
Cloud9's Apache server will not stop until you ask it to. Your workspace will hibernate after a period of inactivity (for free users, it is 2 days), which will shut down all processes running on your workspace. It will remain in that state till you next need to access it,...
django,python-2.7,website,dreamhost
You definitly cannot access local filesystem of your users. It is a security matter. You can read more at this related question : Reading files from hard drive with javascript What you can do by the way is limiting the type of file you can upload with the accept attribute...
email,parsing,vbscript,website
Although not complete, not optimal, not bugfree, this could help: ' VB Script Document option explicit Dim strResult: strResult = Wscript.ScriptName Dim numResult: numResult = 0 Dim ii, IE, pageText, fso, ts, xLink, Links set fso = createobject("scripting.filesystemobject") set ts = fso.opentextfile("d:\bat\files\28384650_webdump.txt",8,true) set IE = createobject("internetexplorer.application") 'read first page IE.navigate...
python,table,website,beautifulsoup
The problem is sum tries to find the sum of list of integers where as you have passed a list of unicode characters which it cannot sum. All you need to do is to map each element of the list to int and pass it to sum. if re.search(time, second.text):...
apache,download,website,server,fedora
These two for cycles run in bash should do it: for S in S{001..109}; do mkdir ${S} cd ${S} for R in R{01..14}; do file="http://www.physionet.org/pn4/eegmmidb/${S}/${S}${R}.edf" wget "$file" wget "${file}.event" done cd .. done ...
website,add,webpage,subdirectory
If you upload the other HTML pages in the same folder you can reach them with www.your site.com/page name.HTML If in the index.HTML folder you create a subfolder and a file in that subfolder you can reach the page with www.yoursite.com/subfoldername/pagename.HTML...
So what it sounds like is happening is that the session cookie (the cookie used to authenticate you) expired. Cookies are often set to expire to log you out of a given application for security reasons (to prevent cases such as someone else using your computer and accessing your banking...
You need to add vertical-align: bottom to the #followImg img elements: #socailMedia { color: #939393; width: 350; float: left; margin-left: 20; } #socailMedia p { margin: 0; background-color: red; } #followImg img { background-color: red; height: 35; padding: 0; margin: 0; vertical-align: bottom; } <div id="socailMedia"> <p>Follow us:</p> <div id="followImg">...
I like using Sublime text. It's very lightweight and extemely versatile :). You can install alot of free very creative plugins to help you coding too including some SVN plugins. To share your code another way i guess you could use something like github or tortoise SVN too. To work...
javascript,html5,css3,build,website
I can't comment so i'll post as an answer. So please no down voting. You can create a website but that site won't be an interactive website. What I mean is that the site will not be able to get data from users and save it in databases (well you...
javascript,jquery,website,integer,tablesorter
What's happening is that the 86 is the very first cell in the column. So the auto-detection of parsers thinks that is a numeric column. To fix it just set the column parser to text. The easiest way to do it is to add a "sorter-text" class to the header....
html,css,html5,google-chrome,website
I think you are asking about Parallax. Explore a bit on Parallax in Wiki and see some samples here...
Background-image now supports multiple images. You could try play around with that. But note browser support needs catching up. EG #example1 { background: url(img_flwr.gif) right bottom no-repeat, url(paper.gif) left top repeat; } Depending on your layout, images etc, it may be easiest to just use an editor to combine into...
If you have access to PHPMYADMIN than you can restore the URL. - Open your site database - Search for the core_config_data table and click Browse. - Locate the rows to edit : web/unsecure/base_url and web/secure/base_url Thanks...
ios,ipad,background,website,wkwebview
This is a bug in WKWebKit that's usually triggered by HTML elements with position: fixed applied. The only workaround I've found is to use window.scrollTo() to scroll the page by one pixel a few hundred miliseconds after a resize event.
Here's the answer: use double backslash. bin\\php_mongo.dll
Option1 Keep your file myPage.html in public_html you need to create a .htaccess in public_html and add this into the file: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.html [NC,L] Option 2 Make a folder calls myPage Rename file myPage.html to index.html Movethe file index.html to myPage folder Note:- Don't...
javascript,html,image,random,website
create an array with all the urls of the images you wanna use. e.g. HTML: <img id='the-image-to-change'/> JS: var imageUrls = [ 'http://placehold.it/255x255&text=A', 'http://placehold.it/255x255&text=B', // ... more 'http://placehold.it/255x255&text=Z' ]; if you're not using jQuery: var img = document.getElementById('the-image-to-change'); img.addEventListener("click",function() { this.src = imageUrls[Math.floor(Math.Random() * imageUrls.length)]; }); if jQuery img =...
amazon-web-services,amazon-s3,website
The only way to update a file is to overwrite it. You can use the CLI sync client or use a GUI (search Google). You currently cannot open the files in AWS to edit. You don't have to download a file if its already downloaded :). So if you edit...
The example that you have provided and the other website that you are looking at are very different. In the first example, the interactive portion that you are linking to is an embedded content that (sort of) has its own independent existence. But the other website doesnt contain such embedded...
html,.htaccess,website,directory,server
Only this page to view: Create a .htaccess file at the root of your website and in it, put: RewriteEngine on RewriteRule ^(.*) directory/subdirectory/index.php This means that any request sent to the server will return what would be returned if we called directory/subdirectory/index.php. You will need to adapt this if...
Follow these instructions: http://p5js.org/get-started/ Or these instructions: https://github.com/processing/p5.js/wiki/Embedding-p5.js Basically, you need to create an html file that uses p5.js, which you should already have. Then you just need to upload that html file, along with any resources you're using, to some kind of web host. You might also want to...
Vertically center anything with these four lines of code position: relative; top: 50%; transform: translateY(-50%); max-height: 100%; Apply this to a wrapper of the element that you want to vertically center (Demo) HTML <div class="wrap"> <main></main> </div> CSS html, body { padding:0; margin:0; height: 100%; } main{ background: url(http://placekitten.com/1280) no-repeat...
c#,asp.net,website,master-pages
Master pages can be nested. So you could have master page A, and then B and C both reference A. Or you could have master page A, with just B referencing it. You'll have to examine your code and see which one will work best for your situation. Below example...
apache,website,development-environment
The most straightforward way is to add a *:80 virtualhost after this one that doesn't use VirtualDocumentRoot at all and has a specific DocumentRoot. It will be matched only when the ServerName/ServerAlias matches the hostname used by your external clients.
javascript,jquery,html,css,website
Looks like a spelling error: <section id="photograhpy" class="photograhpy"> Should be: <section id="photography" class="photography"> There is nothing else outstandingly wrong with your code. Also, you may not reference elements with the same id exclusively via JavaScript. It is poor practice to give multiple elements the same id....
amazon-web-services,website,cloud,hosting,bitnami
To host static website using Bitnami try following steps. Run an AWS instance from marketplace using 'LAMP Stack powered by Bitnami' AMI. This AMI will have pre-configured LAMP stack. Attach EIP to your Instance Upload you website files to /var/www/html/ Type your EIP in browser and if everything went right...
There are a bunch of solutions (e.g. do you want to index your files periodically of do you prefer ad hoc searches?). Look up XML parsing and PDF parsing.
php,html,xml,website,web-project
Where HTML has a fixed set of tags with defined meaning, mostly relating to presentation, in XML you can define your own set of tags with meaning particular to your application or domain. You probably don't need XML to get started building your social networking site, but down the road...
performance,website,load,load-testing
opensourcetesting.org website gives the list of 54 performance testing tools as for the moment. The most powerful of existing free and open source tools are: Grinder Gatling Tsung Apache JMeter I believe that Open Source Load Testing Tools: Which One Should You Use? guide will help you to choose the...
google-maps,search,website,blogs,blogger
It depends on several things, such as how many views the site gets, how you submitted the update, etc. Because you submitted the homepage to Google's Webmaster tools, it should update soon, in about a day or two. Some things you can do to help speed it up are submitting...
angularjs,image,website,gruntjs,filezilla
I think image paths are broken because inside filerev:dist grunt task you are setting your images for file revision, which will return an unexpected name each time you build the project. Try to comment this line inside filerev:dist task '<%= yeoman.dist %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}', and re build the project....
You can accomplish this fairly easily by first creating an element: <span id="clock"></span> And then getting a reference to that element: var clockElement = document.getElementById( "clock" ); Next we'll need a function that will update the contents with the time: function updateClock ( clock ) { clock.innerHTML = new Date().toLocaleTimeString();...
Put this in the .htaccess Options -Indexes ...
You can't do that if the website don't provide the api service.
javascript,css,website,modal-dialog,bootstrap
That's because Bootstrap's javascript requires JQuery to be loaded. Add the following line before you import the bootstrap JavaScript: <!-- Javascript Files --> <script src="http://code.jquery.com/jquery-2.1.4.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script> ...
performance,amazon-web-services,amazon-ec2,website
Since you have hosted your CRM based website in us-west-2, there will be latency issue which is obvious. If you are planning to serve Indian customers I suggest to host it in the ap-southeast-1 region. Also I guess bigrock data-centers are located in India itself. That's the reason latency will...
There are a lot of options: you might switch from Excel to Access (if your customer has a license for it) and have Access read the same database your PHP program writes to. To notify them of changes you can send an email (only for notification, not for transfer of...
codeigniter,error-handling,website
If you change your logging level in index.php from error_reporting(E_ALL); to error_reporting(E_ERROR); notices and warnings will be suppressed. Good practice dictates that we develop with notices and warnings enabled but in production these would be suppressed and your code will still work. Its up to you whether you bother about...
html,css,website,styles,background-image
its working fine. You have to recheck the path of the image that you are using in background. else its all good. its working for me [http://jsfiddle.net/vipin_raunchhela/3q51s4ja/1/][1] ...
android,ios,google-chrome,website,html5-video
The HTML video player can be fully customized in desktop + mobile. See Ghinda's excellent demo at https://dev.opera.com/articles/custom-html5-video-player-with-css3-and-jquery/video.html...
javascript,jquery,html,css,website
You can use http://codepen.io/pen for quick online testing or sharing of code. You can then share that link with people and they can play it. If you want to host it on a server, you can always google "free web hosting" for a temporary online sandbox of sorts. For example,...
asp.net,asp.net-mvc-4,iis,website,publish
No. There is not. You should have thought about that in the planning of your application. You can make improvements in the feature in order to save your session vars in a db or smth if they are so important to you. But updating DLL, web.config, etc. are the same...
I found the solution. you have to add this code to CSS z-index: 100; ...
redirect,hyperlink,download,website
I would do it with with three files, and the download file. Copy and paste next code in three files (Z.HTML, ZZ.HTML AND ZZZ.HTML), and you will need the download file (ZZZZ.CMAP). Z.HTML : <html> <head> <title>Redirect</title> </head> <body style="background-color:cyan;"> <a href="zz.html">Click here to download file</a> </body> </html> ZZ.HTML :...
Check out a GridView control Something like this: <asp:GridView runat="server" AutoGenerateColumns="false" ID="gridView1"> <Columns> <asp:BoundField HeaderText="Name" DataField="Name" /> <asp:BoundField HeaderText="Description" DataField="Description" /> <asp:TemplateField HeaderText="Price"> <ItemTemplate> <%# ((decimal)Eval("Price")).ToString("c") %> </ItemTemplate> </asp:TemplateField> <asp:TemplateField> <ItemTemplate> <asp:Button runat="server" Text="Add...
FYI, without any server communication you can't use the website database in android application. If you want to manage the communication between the website and the android app means you need a centralized server which having the data of your web/mobile applications. So, after that by using the web service...
Without information about why using the gdata package does not work for you I have to assume. Make sure you have Perl installed - you can download it at http://www.activestate.com/activeperl This works for me: library('gdata') ## URL broken into multiple lines for readability url <- paste("https://quotespeed.morningstar.com/exportChartDataToExcel.", "jsp?tickers=AAPL&symbols=126.1.AAPL&st=1980-12-1&ed=2015-", "6-8&f=m&dty=1&types=1&ver=1.6.0&qs_wsid=E43474CC03753FE0E", "777D89877788ECB", sep...
In http://www.website.com/projects/.htaccess add the following lines: Options +FollowSymlinks RewriteEngine on RewriteRule (.*)/?$ http://www.website.com/$1 [R=301] () is a capture group . is any character (except newline) * is the preceding character 0 to any number of times ? is the preceding character 0 to 1 times $ is end of match...
javascript,jquery,html,website
In your js file that defines a config for require.js in require.config.path section put something like this: 'layerslider.greensock': '/assets/layerslider/js/greensock', 'layerslider.transitions': '/assets/layerslider/js/layerslider.transitions', 'layerslider.kreaturamedia': '/assets/layerslider/js/layerslider.kreaturamedia.jquery' then in a shim part define dependencies: 'layerslider.greensock': { deps: ['jquery'] }, 'layerslider.transitions': { deps: ['jquery'] }, 'layerslider.kreaturamedia': { deps: ['jquery'] }, And then just start use...
you should go for wordpress cms. Its very quick and easy to use to setup a website with least knowledge required. you can start with famous five minute wordpress installation at here Five Min Install Wordpress
Finally found the example. I suggest switching to Mail2 from PEAR. It will not throw exceptions. My example uses MIME as well to format the message properly. I did not want to rely on my SMTP Relay, so I push mail directly to a recipients MX Record. If you do...
Per comments above: the OP wanted their website to look the same on desktop and mobile. That is, no layout re-ordering, re-sizing or re-styling. To do what you want we need the mobile browser to zoom out so the whole page can be seen. This happens to be what mobile...
This code is setting interval of the function using setInterval meaning that the function will be called after every 10 millisecond. The function in it is triggering the click of the element having class btn and then sending data to the log ("WORKING"); setInterval(function(){ jQuery('.btn').trigger('click'); console.log('Working...'); },10); Hope this helps...
Try using java to visit https://www.sobeys.com/en/stores/sobeys-danforth/preferred as it sets the cookie you want, otherwise it returns this cookie...
<script> $(function() { $( "#progressbar" ).progressbar({ value: 50 }); }); </script> put the desired value in value:50 change the value from 50 to whatever and see the result...
The solution is to force IIS to write the changes from the cache into the Metabase.xml, this way the new configurations will be available for editing. This is done using the command - %systemroot%\system32\IIsCnfg.vbs /save ...
preg_match will do what you want: $input = "HTTP/1.1 301 Moved Permanently"; $matches = array(); $found = preg_match("/\d{3}/", $input, $matches); if($found) { echo "Code = " . $matches[0]; } If desired, you could make the pattern more strict: $found = preg_match("/HTTP\/1\.1\s(\d{3})/", $input, $matches); if($found) { echo "Code = " ....
php,android,browser,website,device
I dont think this is possible. This might lead to security issues. If this could have been possible, everybody would want to have a button like this. Lets take a scenario. I open a page and click on the button. The button sets a particular (unknown) page as the default...
Here is working code: function pNumList(){ var primeNumbers = []; for(var noomber = 2; noomber<=1001; noomber++){ var prime = true; for(var i = 2; i<noomber; i++){ if(noomber%i==0){ prime = false; break; } } if (prime) { primeNumbers.push(noomber); } } pNumbersList.innerHTML = primeNumbers.join(','); } JSFIDDLE...
javascript,jquery,html,css,website
Look at impress.js it gives you an already working framework, you just have to compose the elements. https://github.com/bartaz/impress.js/ EDIT Other framework is fullPage.js https://github.com/alvarotrigo/fullPage.js...
Do a whois lookup. I usually just go to http://who.is and do a search on the URL. The whois lookup will give you a list of information about that domain. Often looking at the nameservers will help. You might need to search the name servers on google (or other search...
firefox,website,reader,firefox-reader-view
There is currently no legit way of disabling Reader View for your website. Reader View is supposed to automatically detect on what pages it should be available and on what pages it should not. If there is an issue with your website, your best option is probably to report it...
Try this extension. It will show social buttons to all your articles. http://extensions.joomla.org/extension/bt-social-sharing
php,email,website,smtp,phpmailer
The server requires a valid authenticated user, you need to add authorization credentials. Of course change the values of Username and Password for valid authorization credentials in your SMTP server. $mail->SMTPAuth = true; $mail->Username = "yourauthorizeduser"; // It could be [email protected]" $mail->Password = "v3rys3cr3t"; ...
node.js,installation,website,server,setup-deployment
Signup for the free Heroku account and upgrade if needed. https://www.heroku.com/beta-pricing Here is their deploy instructions for node.js. https://devcenter.heroku.com/articles/getting-started-with-nodejs#introduction Another host with a free option is OpenShift....
All you need to do is build multiple popup divs, and specify the targets. Sadly, you cannot use the same popup div to display the content, without using javascript. Here is a quick fiddle to demonstrate how you can do this. <div class="box"> <a class="button" href="#popup2">Click Here 2</a> </div> <div...
You could use the php echo function to output all HTML that is needed for your website but I don't think that is what you are looking for. As AlphaDelta said your users would not see anything when visiting your website. I would not recommend you echoing your entire html...