w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
prepareForSegue takes me to a blank page
While you want to navigate by clicking on your table cell, you should use didSelectRowAtIndexPath delegate method of tableView. And in that method just use the thing you have used in prepareForSegue and remove this prepareForSegue. Because prepareForSegue will be called before going to next View. And didSelect will get called while clicking on cell. You should use prepareForSegue when you want to set any data before calling the next view.

Categories : Iphone

How to make "document.write" in an if statement work on the same html page rather than a new blank page?
This has nothing to do with being in an if statement, it has to do with using document.write when the document is in a closed state. Using it then will open a new document to write to. There is no way around that. Use DOM manipulation instead of document.write.

Categories : Javascript

Joomla 1.5 font page blank page
I have found the problem. On if its modules was causing the blank page error in some way. I was able to find this out by first making a copy of the current site using Akeeba Backup plugin. Installed is on my localhost. Installed a fresh version of Joomla 1.5 (with out default data) Then edited the configuration.php file's database connection settings /* Database Settings */ var $dbtype = 'mysql'; var $host = 'localhost'; var $user = 'root'; var $password = 'password'; var $db = 'dbname'; var $dbprefix = 'jos_'; to use the database created from the copied version of the website I installed on my localhost. With that being done the fresh version of joomla I created had all the database information I needed to recreate a new website with the same content. I then started copying the compo

Categories : Joomla

In markup page it takes only the first Item of an ArrayList
declare a like this in code behind int a { get { if (ViewState["a"] == null) { ViewState["a"] = 0; } return Convert.ToInt16(ViewState["a"]); } set { ViewState["a"] = value; } } protected void Page_Load(object sender, EventArgs e) { // construct a scheduler factory if (!Page.IsPostBack) { a = 3; } }

Categories : C#

Loading the page with gallery takes too long
Given that you want the images only for the gallery navigation, do not set the src of the img elements. By setting the src elements the browser will send HTTP requests to your server for the images, which can be costly for a large number of images. What you can do: HTML: <ul id="ulBack"> <li><img data-src="gallery/01.jpg" style="display:none"/></li> <li><img data-src="gallery/02.jpg" style="display:none"/></li> ... </ul> JS: function change(){ var goImg = "url(" + $('#ulBack img' + ':eq(' + n +')').attr('data-src') + ")"; $('#divGaLL').css('background-image', goImg); };

Categories : PHP

How can I redirect where the Django admin page takes you when you log in?
Django's admin site login works without redirects. Admin site just hooks on every request started with "/admin/", and if the user is not authorized - shows login form on the same url. I.e. if you want to give access to the admin itself - just point users on "/admin/", without "login/". If you want to use login form for your project - write an appropriate view or use one provided by Django.

Categories : Django

Anchor containing an image takes full page width
in your css, you have this: .app-details .download img { display: block; margin: auto; } img is set to display block, which consumes all available space.

Categories : HTML

IE takes too much time to load the page compared to Firefox
Performance issues like this will be down to rendering the UI. The server side processing won't vary from browser to browser, so it will be down to the way different browsers handle the drawing of the elements. Without seeing your page in action it is not easy to suggest anything to help improve your situation.

Categories : Performance

PhoneGap Android orientation change takes the app one page back
Add android:configChanges under each activity tag not in application tag as you written in application tag and skip it to MainActivity tag Try This:- <activity android:name="com.example.firstVersion.MainActivity" android:configChanges="orientation|screenSize|keyboardHidden|keyboard|locale" android:label="@string/app_name">

Categories : Android

AJAX TruClient protocol takes more time to load a page
Check the number of resources being downloaded Using the HTTP/HTML protocol you will only count the page elements (extraes) that you have included in your script / found by LoadRunner. This is often a lot less than would be found by the actual browser. Open up the site in something like Firebug and see what the actual page load time is there first. AJAX TruClient "end" transaction times sometimes need attention When ending a timing point in AJAX TruClient there are 5 options: Action Completed Step Network Completed DOM Content Loaded Document Loaded Dialog Opened You may need to change the end transaction 'End Event' to suit your particular site.

Categories : Jquery

Improving query run time (Takes more than 20seconds to load a page)
It seems this query computes the values for all the users. If you wish to display this for only one user, then it might be much faster to add and (login='xxx') in the where clause. Otherwise, as Mihai suggested, caching might be the best approach.

Categories : PHP

Symfony2 blank page
Ok. I finally got it to work. It definitely was a problem with memory. I think Doctrine2 sometimes doesn't manage the memory well. It was really tricky because I was getting the error in my testing environment, where no error was shown in any log, debug bar or displayed in the screen. Once I got to reproduce the same error in local, I saw pretty quickly the exact line of code were the error was taking place. So, kids, when you have a completely blank page, consider that you may be troubleshooting some memory problem and manage to reproduce the error in some environment were you know that logging is working properly.

Categories : Mysql

Blank page, nothing but plugin
Simple: create an according template for your contact page and assign that template to your contact page in Wordpress' admin area. If you need a more detailed "How To", check: http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates

Categories : Wordpress

yet another blank page in codeigniter
sorry guys I feel like a complete tool I'd forgotten to make sure gd was installed. Now it's installed everything works. I suppose I was right in thinking it was something simple, I was just wrong about what simple thing was causing the problem! Thanks for the help everyone!

Categories : Codeigniter

First viewpager page blank
The issue must be because card is taking time to load data from database and view is not updated after data is being loaded.Try adding handler.postDelayed(r=new Runnable() { @Override public void run() { if (mPosition == position) { notifyDataSetChanged(); handler.removeCallbacks(r); } } }, 1000); inside instantiateItem of adapter so that view is updated after 1 second when it is being created.mPosition is the postion of the first card that is being opened.If you are opening viewpager by clicking on item in list then you need to pass the postion of the item that is being selected when calling adapter..else u can set mPostion as 0 if the first it

Categories : Android

PHP DOM get text of blank page
The response headers are indicative of the problem: HTTP/1.1 403 Forbidden So, you would have to check for those errors: $feedURL = "http://gdata.youtube.com/feeds/api/users/".$user."/uploads?max-results=20"; if (($contents = @file_get_contents($feedURL)) === false) { echo "$feedURL could not be loaded "; } else { $sxml = simplexml_load_string($contents); // rest of your code }

Categories : PHP

First VerticalViewPager page blank
You need to notify that the page has been set by the adapter. Just addthis line after you set the adapter: mPagerAdapter.notifyDataSetChanged(); When you come back next time, your page is invalidated by fragment callbacks.

Categories : Android

getting blank page when printing with fop 1.1
There seems to be a problem with the AWT renderer (the print renderer uses the AWT renderer) in FOP 1.1. I tried your example using the following as your step 3: fop -atin myfile.at.xml -awt I noticed the same result - a blank page. (NOTE: to get the AWT render to work on Windows, you will need to edit fop.bat so that -Djava.awt.headless=false). I found it strange that no errors were logged to the console, and I couldn't find any bugs reported in FOP's JIRA instance. So I decided to have a play with FOP 1.0. The workaround - download FOP 1.0 instead of FOP 1.1. Use the following as your Step 3: fop -atin myfile.at.xml -print all NOTE: The all argument is used to print all pages. Omitting this argument fails in 1.0, but has been fixed in 1.1. Hope the above is a workable solution f

Categories : Java

Blank page when use jQuery
document.write strangely enough overwrites the entire document when used like that, that's why it's blank ? Also, writing a script tag inside a script tag like that doesn't work, you should be using the following method to add script tags to the head section : <script type="text/javascript"> var head = document.getElementsByTagName('head')[0]; var script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; head.appendChild(script); </script>

Categories : Javascript

Facebook Javascript API Takes A Long Time to Initialize when There Are A Lot of Images on The Page
Use the async version of the sdk init and do all your api calls from with in it where the comments ays make all graph api calls here. The calls will not be made until the sdk has loaded completely. refer to https://developers.facebook.com/docs/javascript/gettingstarted/#asynchronous <div id="fb-root"></div> <script> window.fbAsyncInit = function() { // init the FB JS SDK FB.init({ appId : 'YOUR_APP_ID', // App ID from the app dashboard channelUrl : '//WWW.YOUR_DOMAIN.COM/channel.html', // Channel file for x-domain comms status : true, // Check Facebook Login status xfbml : true // Look for social plugins on the page }); // do al

Categories : Facebook

Delete session and cookies then create new one - only takes effect at next page load
detect user delete cookies optionally you could create new session data right here redirect to some page of your choosing :) that way it will pick it up correctly (and create new data)

Categories : PHP

SQL Performance - SSIS takes 2 mins to call a SProc, but SSMS takes <1 sec
I don't have a solution for you, but I do have a suggestion and a procedure that can help you get more information for a solution. Suggestion: a stored proc that gets called millions of times should not be using a cursor. Usually a cursor can be replaced by a few statements and a temp table or two. For temp tables with more than 10k rows or so, index it. Procedure: At key places in your stored proc put a statement declare @timer1 datetime = GetDate() (some code) declare @timer2 datetime = GetDate() (more code) declare @timer3 datetime = GetDate() then, at the end: select datediff(ss,@timer1,@timer2) as Action1, datediff(ss,@timer2,@timer3) as Action2 At that point, you'll know which part of your query is working differently. I'm guessing you've got an "Aha!" coming.

Categories : Performance

Why does the jvectormap example display a blank page?
It works, here's the proof. It's likely you're not pointing correctly to the files in your html. And you don't need to point to a map, the default value for "map" is "world_mill_en": jvm.WorldMap.defaultParams = { map: "world_mill_en", This is an excerpt from jquery-jvectormap-1.2.2.min.js which makes $('#world-map').vectorMap() perfectly fine.

Categories : Jquery

Blank page on application startup
I think its showing because Your app's first page takes time to load. it can be possible that you are doing too much of work on onCreate() method of activity. so i would suggest try to minimize the load when activity starts. so that blank screen will not appear. Hope you understand!!

Categories : Performance

php json decode blank page
I think you need this echo $obj->response->items[0]->files->mp4_240; instead of print $obj->{'response'}->{'items'}->{'files'}->{'mp4_240'};

Categories : PHP

rails showing blank page
In your query method, you wrote and finder method, but you have write table name there, not model name, finders works on Model name, write like this : In your query method replace this : @a=Coordinates.find("city=?", params[:show]) with this : @a=Coordinate.find("city=?", params[:show]) because model name, always remain singular, unless you make changes any configuration. and I think, there is a problem with your params[:show] with this. Please paste your result of 'params[:show]' Hope it will help. Thanks

Categories : Ruby On Rails

Django NoReverseMatch and Blank Page
Your keyword arguments for the url are category_id and slug_id, but you are passing in category and slug in your get_absolute_url method. This version should work: @models.permalink def get_absolute_url(self): return ('entry.views.detail', (), {'category_id': self.category.slug, 'slug_id': self.slug}) Also consider renaming your arguments. id is generally numeric and slug is alphanumeric. For your blank page problem (from your comment): Your URL /category/entry-test/ - this will map to your detail view if the snippet your pasted in your question is in your main urls.py. If you have no matching results (the .filter() call has no results), you'll see a "blank" page, because the <ul> will not have any li elements. If in your main urls.py, you have some

Categories : Django

Getting blank page using cURL twitter
Your Authorization header looks wrong. To do this kind of request you need to generate a signature. There is more information on the Twitter development site I wrote a CodeIgniter library for making cURL requests to Twitter. You may want to use it or just take bits of code from it. The repository is here

Categories : PHP

jquery Ajax goes to a blank page
Dont think its the problem, but you should not use reaturn false. This would be the proper method $("ul li a").on('click', function (event) { event.preventDefault(); // this will stop default behaviour. var jLink = $(this); });

Categories : Jquery

Blank Page after include command
Apologize in advance - it's not the answer but just wild guesses. "Class/MyClass.php" (or any file it includes) contains somewhere exit() or die() calls that depend on configuration. Try setting error_reporting(E_ALL) and ini_set('display_errors', '1') right before including.

Categories : PHP

ngix and php5-fpm blank page
I’ve seen inconsistent implementation between SCRIPT_FILENAME and SCRIPT_NAME params, so I define them both like this: fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_NAME $fastcgi_script_name;

Categories : Nginx

Submit returning a blank page
To sum this up: use error reporting in the beginning of your script error_reporting(E_ALL); Echo out the SQL query (after you created it) to see what weird, unescaped stuff you want to send to the server: echo $sql3; exit; // to prevent execution Try the echoed SQL with phpmyadmin to see if the problem is your query or the missing database connection. There are a lot more bad things in your script, but for first error-tracing those tips might be okay... In general, i recommend you to completely rewrite this after you read into SQL injection, modern database query methods, proper php coding etc. ! To finish your project, you should consider using a micro framework to get quick and secure results.

Categories : PHP

Getting blank page using RequireJS and Grunt
Okay, so this is the crazy simple fix: In the module that's declared after the require.config, use 'require' instead of 'define' when declaring the module. If you use 'define', it added 'config' as a dependency of that module, which broke the whole thing. Craziness!

Categories : Javascript

Why is this Meteor example app only showing a blank page?
you need to have meteorite installed on your machine because it uses the router package install meteorite (http://oortcloud.github.io/meteorite/) and then run mrt update inside your app folder and then run meteor and it will work

Categories : Javascript

wp-admin shows blank page, how to fix it?
Try turning on WP Debug. If this is happening due to a PHP error (which I bet that it is), you will be able to see what's going on and fix the error.

Categories : PHP

My website shows up as a blank page on my desktop
Turn on the wordpress debugging in wp-config.php file and run again to check is there any fatal error or not: define('WP_DEBUG', true); And be sure that error reporting is On Maybe you are not in right path. I found this theme on your host refer to modular theme: http://bbmthemes.com/themes/smart/

Categories : HTML

How Do I add this banner to my page with out making a blank line?
Mate this is a bit basic and I have just taken a piece of your page. What you need to do is get the buttons to float right, so that the banner can fit in. At the moment you have: margin-left: 600px on your first button, and that means that even though you cannot see anything to the left of it, and though it appears as if the banner can fit in there, that space belongs to that button and the banner cannot go in there. As such it is pushed to the bottom and you see the space. So have a look at this: http://jsfiddle.net/mQUQK/ I have created an extra container div around the buttons and floated that div to the right.

Categories : CSS

VBscript XMLHTTP get web page returns blank
There is no response text. The server responds with status 302 Found to that request. Always check the status when dealing with XMLHTTP requests: WScript.Echo o.status & " " & o.statusText

Categories : Vbscript

Extra blank page when converting HTML to PDF
Changes accordingly: Firstly A4 size was this: #define kPaperSizeA4 CGSizeMake(595,842) Changed it to : #define kPaperSizeA4 CGSizeMake(595.2,841.8) Now increased page margin of content in PDF : printableRect = CGRectMake(10, 18, kPaperSizeA4.width-20, kPaperSizeA4.height-36); Refer for more Avoid extra blank page (with A4, in some unexpected cases

Categories : Iphone

Simple login returning blank page
The problem is if(isset($_POST['login'])) You never set a "login" entry in your form. You can do: if(isset($_POSt["user"]) && isset($_POST["password"])) { $user=$_POST['user']; $password=$_POST['password']; //To ensure that none of the fields are blank when submitting the form if if($user && $password) {

Categories : PHP



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.