w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
UITableView dynamic content loading when scrolling
Maybe with this delegate you have a chance to do something in advance. There is also possible to reload only the visible rows which it's better than reload data. -(void)scrollViewWillBeginDecelerating:(UIScrollView *)scrollView { NSArray *paths = [self.tableView indexPathsForVisibleRows]; int tmprow = [[paths objectAtIndex:0] row]; }

Categories : IOS

loading external html file using jquery and accessing it content
I think you don't have tr and td class so remove the . from the selectors then check. Also you should find your table in your responselike, like, $("#result").load('<?php echo $loading_transmitter; ?>',function(data){ var main_proc_temp = $(data).find('table:nth-child(2) tr:nth-child(1) td:nth-child(3)').text(); alert(main_proc_temp); });

Categories : PHP

UIPickerView change content text size after loading content into picker
If I understood your question correctly, you may want to take a look at this answer. The strategy is basically to truncate (ellipsis) instead of font shrinking. Edit (based on comment) I would strongly advise against setting all text to the minimum font. Lets say you have elements as such: Pear Peach ok, so far these will fit your label perfectly, with a good font size. Now you add a longer item: Pear Peach Strawberry Pineapple and now all your items are a little bit smaller, but thats still readable, so it's acceptable. And then a huge item appears, such as: Pear Peach Strawberry Pineapple SomeKindOfExoticFruitThatHasAnIncredibleLongName which would make all items inside your picker become incredibly small, and difficult to read. But if you still want to go down that roa

Categories : IOS

Make footer get pushed off page by content but stay at bottom when not full page content
in your html you have <footer> and css footer{ some-code} shouldn't this be an id (if onyl used once per page) or class (if used multiple times per page)? .footer or #footer then <div id="footer">text</div>

Categories : HTML

How can I update the content of certain column without any page loading?
You have to set remote => true in your form and also set :method => put Put lets you update columns in your database and remote true will configure the form to send an ajax request. You'll also have to configure the update_message action in your controller to handle ajax requests. Finally, make sure your routes are configured correctly. You'll have to define that route in routes.rb and probably do an :as => 'update_message' to have access to that route helper method This may help you with ajax in rails forms http://edgeguides.rubyonrails.org/working_with_javascript_in_rails.html Here's a sample form, it's in haml though: = link_to "Start", polls_toggle_live_path(poll.id), :method => :put, :remote => true, :class=> 'btn btn-success btn-small start-poll', :id =>

Categories : Ruby On Rails

loading a html page after php content is loaded
I think your problem can be resolve via ajax <script>(a.html) $(document).ready(function(){ $.ajax({ type: "POST", url: '/templates/default/property/tab.html', //or b.html data: form_field, success: function(d){ $('#includedContent').html(d); }, }); }); </script> in html page (a.html) <div id="includedContent"></div>

Categories : PHP

htmlagilitypack not loading full content of the page
I'm not familiar with the HtmlAgilityPack or C# in general, but I can tell you from a scraping perspective what I'd do. The document you need to get is http://cks.nice.org.uk/js/topics.txt which provides a nice JSON structure of the topic names and their URL. Parse that, and you'll see an array of objects like: {"Title":"Achilles tendinopathy","Slug":"achilles-tendinopathy","Specialities":["Injuries","Musculoskeletal"]}, {"Title":"Acne vulgaris","Slug":"acne-vulgaris","Specialities":["Skin and nail"]} Take the "Slug" from each and append to the base URL to get each topic page, e.g. http://cks.nice.org.uk/achilles-tendinopathy

Categories : C#

ASP.NET Error: Content controls are allowed only in content page that references a master page
The page that you've put the content control is not a master page based page. Check the top of the page, if you've got html like <html> <body> tags then the likelihood is that you've created a new page rather than a new page based off a masterpage.

Categories : Asp Net

Content pushed down in a UIPageViewController with UINavigationController
Initially my view controller hierarchy looked like this: -- UINavigationController -- MyContainerViewController -- UIPageViewController -- MyDetailViewController I set it up this way so MyContainerViewController could manage a toolbar. I narrowed my problem down to MyContainerViewController, and then it occurred to me that I don't even need it if I subclass UIPageViewController. Now my hierarchy looks like this: -- UINavigationController -- MyPageViewController -- MyDetailViewController MyPageViewController manages it's toolbar, and everything works as expected, both on a 4-inch and 3.5-inch device.

Categories : IOS

Loading wordpress page content in colorbox Iframe
Thanks for your sympathizing comments on my first question on stackoverflow. I'm sorry if my question wasn't clear enough, but the site where the problem shows up is still in development. But fortunately I've figured it out after a long time: Next to single.php I created a singe-portfolio.php file, because because of the Wordpress hiërarchy, WordPress finally looks for singe-{filetype}.php. In the Nimble Portfolio Loop, I linked to this file with the following code: <a href="<?php echo 'http://siteurl/?p='.$post_id; ?>" class="button-fixed colorbox-link">...</a> In the single-portfolio.php file, I used a regular WordPress loop to get the page content in the JQuery Colorbox Iframe. Hope this will help someone else!

Categories : Wordpress

How do I specify mixed content for the @page{ content: } property?
I don't think you can combine images with text in generated content. CSS2.1's definition of content, the one currently implemented by most browsers, does not contain a possible value that combines both an image URI and a string.

Categories : CSS

created a jquery tab content changer when tab content is increasing height due to inner content its over lapping to its bottom div
This happens because the wrapper of you content tabs .tab-container has height: 300px;. Put it to min-height: 300px; and should work fine. Test: JsFiddle

Categories : Jquery

html not loading jquery? (dynamic content loading)
Have you tried adding HTTP to your call to jquery: <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"</script> Also you are missing a closing > on your script tag: <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>

Categories : Jquery

Trouble sorting content of UITableView
As rdelmar said, you need to sort after you fill the array. You want to make sure sortedArray is updated whenever unlockedCycleClass (which by the way is an Array, not a Class) is updated. So eg in HMContentController.m, you could repeat your lines: NSSortDescriptor *sort = [NSSortDescriptor sortDescriptorWithKey:@"name" ascending:YES];//my added sorting code _sortedArray=[_unlockedCycleClass sortedArrayUsingDescriptors:[NSArray arrayWithObject:sort]]; //my added sorting code inside the unlockCycleClassWithDirURL function, after you do [_unlockedCycleClass addObject:cycleClass]; This is not the most efficient way to do things, but I think it should work.

Categories : IOS

UIScrollView in UITableView content problems
This is not exactly related to your question but you will run into this issue too: Don't forget that your cells will be reused. Upon reusage (lets say the user scrolls down, a cell is moved upwards off the screen and the next that appears on the bottom will be physically the instance of CustomCell that just disappeard and was reused.) Therefore add: for (UIView *aView in [NSArray arrayWithArray:cell.subviews]) { [aView removeFromSuperview]; // if you don't arc then release them and take care of their subviews - if any. } before adding any new UIImageView. (I thought there was a method for removing all subviews in one go but did not find it)

Categories : IOS

UITableView delete row and show 'no content' row
When you detect that the deletion is the last item to be removed you have some logic to show your default row. When that happens, you can still delete the row but if the row count after that is 1 (because of your default row) you need to insert a row at the same time. You existing detection logic should work fine for this. This all goes in with the delete handling code where you currently delete the last item and the row.

Categories : Iphone

UITableView background image for content
If it's a repeatable pattern, one way would be to split the image, repeat the middle part and show the top/bottom only when the contentOffset reaches the boundaries of contentSize. Or set the top/bottom parts only for first/last cell and the center (repeatable part) for every other. Edit: As I said, for a repeatable pattern: You crop the elements you'd use for header, footer and middle Of course, for header & footers with information in them you'd probably need bigger header/footer images: Get the parts and assign them as backgrounds in your cellForRowAtIndexPath: method. You can do the whole thing with a single image without separating the cropped parts in different files, that's already discussed here.

Categories : Iphone

UITableView content not displayed the very first time even after reloadData
"content" is an empty mutable array until you touch whatever (button?) action that calls the "selectLanguage" and "selectVoice" methods (and then you reassign the "content" variable). I don't see any other manipulations of the "content" mutable array, so it's no wonder to me that nothing appears until you actually touch something. You also do not show where you are calling "reloadData". "content" needs to have array entries in there for "reloadData" to work.

Categories : IOS

Change in content of one cell changes other cells as well in UITableView
(From my above comments:) You cannot use the cell to store the state of a row, because cells are reused. The table view allocates only a finite number of cells. If you scroll down, dequeueReusableCellWithIdentifier returns one of the existing cells that have become invisible. Therefore, you have to store the row's state in a data source and update the complete state of the cell (including the button's state) in cellForRowAtIndexPath.

Categories : Iphone

Multiple download content in UITableView (with ProgressView bar)
Use ASINetworkQueue. It will allow you to create a queue of ASIHTTPRequests that can still be started asynchronously. For example : - (void)getImages { if(!self.queue) self.queue = [[[ASINetworkQueue alloc] init] autorelease]; NSArray* urlStringsToRequest = [NSArray arrayWithObjects:@"http://www.example.com/image1.png",@"http://www.example.com/image2.png",nil]; for(NSString* urlString in urlStringsToRequest) { NSURL *url = [NSURL URLWithString:urlString]; ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url]; [request setDelegate:self]; [request setDidFinishSelector:@selector(requestDone:)]; [request setDidFailSelector:@selector(requestWentWrong:)]; [self.queue addOperation:request]; } [self.queue go

Categories : Objective C

iPhone UITableView - animate all cells content at the same time
The problem you have is that UITableView removes invisible cells from the view hierarchy. That's why the animation stops. An obvious solution would be to use UIScrollView instead of UITableView. It requires sligthly more work but nothing too complicated. Another solution is to remove current cell animations and restart them when the cell appears, using some UITableView delegate method, e.g. tableView:willDisplayCell:forRowAtIndexPath:.

Categories : Iphone

getting content from plist to UITableView to details view controller
Here is your problem, myImageView.image = [UIImage imageNamed:[imageArray objectAtIndex:0]]; You set your image always the same index which is 0. So, logically, you're always seeing the same image. So, what you need to is that you need to detect which cell was selected before you push DetailViewController and pass that info to your DetailViewController. Then, you need to use that info to show appropriate image in your DetailViewController. First, you need to declare a property in DetailViewController.h, @property int selectedRow; change also this line of code myImageView.image = [UIImage imageNamed:[imageArray objectAtIndex:0]]; to myImageView.image = [UIImage imageNamed:[imageArray objectAtIndex:self.selectedRow]]; Then in your TableViewController.m - (void)prepareForSeg

Categories : Iphone

Increasing UITableView tranparency as it's scrolled beyond edge of content
You can use property alpha to create transparent view. use - (void)scrollViewDidScroll:(UIScrollView *) ScrollView when scrolling starts change the alpha value, set alpha value to tableview or cell. set delegate for table view before proceeding. for cell you can set alpha value like this cell.contentView.alpha=0.2; I hope this could solve if any mistake am glade to see where i did mistake

Categories : IOS

Accessing My Content Provider From Another App
No, ContentProviders are first class components (just like activities and services) and can be accessed at any time. The Content Provider basics go through the main points of accessing a ContentProvider using getContentResolver().query() (where getContentResolver() is a method from Context). You can also use AsyncQueryHandler to provide asynchronous insert/update/delete/query capabilities, which is great for one off queries where you don't want to tie up the main thread (as long queries could make your app appear unresponsive). However, for reoccuring queries, the Loader framework (also available via the Support Library) and CursorLoader are by far the easiest way to work with ContentProviders as they will automatically refresh data as it changes (assuming your ContentProvider is calli

Categories : Android

Programmatically Accessing CQ5 Content using the JCR
You don't need and don't want to call JcrUtils.getRepository in a Sling/CQ app, you should rather access the SlingRepository OSGi service that CQ provides. The simplest is to use an @Reference annotation in an OSGi declarative services @Component - there are multiple examples of this in the Apache Sling codebase, the http://svn.apache.org/repos/asf/sling/trunk/samples/slingbucks sample is a good starting point for that. If your code executes as part of request processing, you don't need to create a Session yourself, you can get it by calling request.getResourceResolver().adaptTo(Session.class) where request is the SlingHttpServletRequest that you get in a Sling servlet.

Categories : Java

accessing mail and its content using php
Did you just use php imap? You need to do many things in order to read the mails. There is an open source repository you can use: https://github.com/barbushin/php-imap

Categories : PHP

When does UITableView content size update with row insert/delete animation
The content size will changed after calling delegates about height: - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath; - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section; - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section;

Categories : IOS

On iPad, how do i change the content of one UITableView based on a selected Cell from another?
What you describe is a standard master-detail interface. I guess the detail view controller has a property defined in the .h file where you can set the new 'detail item'. If not, you need to add one (and you must currently have one in the init method or something). Implement the setter method for that property, update the detail item and then reloadData. This way you're just updating the existing view controller rather than trying to create a new one each time. I'd recommend you create a new iPad (or universal) project in Xcode, select the master-detail project template and have a look at the code it contains.

Categories : IOS

UITableView puts cell content on wrong rows after scroll
The problem occurs because the cells are reusable and you need to override the values each time in cellForRow . Try this instead: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ NSString *cellIdentifier = [NSString stringWithFormat:@"cell%d",indexPath.row]; myTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier]; if(!cell) { cell = [[myTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdentifier]; UILabel *firstlabel = nil; UILabel *secondlabel = nil; UILabel *thirdlabel = nil; _eachcolumn = [_eachrow[noOfRows] componentsSeparatedByString:@"|"]; firstlabel = [[UILabel alloc] initWithFrame:CGRectMake(0.0, 0, 142.0,tableVie

Categories : IOS

UITableView Content size is not updated even after reload when I change its frame dynamically
This Problem Generated Because If you change new Frame/design of UITableView then also made changes in UITableView and also your changeable Frame of UITableView is Bigger then your View So may be last two rows you can not be seem. You need to set/update each Time frame of UITableView as. myTableView.frame = CGRectMake(yourX, yourY, self.view.frame.size.width, self.view.frame.size.height - yourY);

Categories : IOS

Assistance with script accessing iframe content please
Replace: var myIFrame = document.getElementById(iframeId); var content = myIFrame.contentWindow.document.body.innerHTML; With: var content = $("#" + iframeId).contents().find("body").html(); Update: In case your iframe is on another domain, you cannot access it directly in javascript due to security risks. In order to access that domain, that domain has to agree to give you the information. You could use postMessage to achieve that, you could check out answers to this similar problem in this discussion

Categories : Javascript

iOS UITableView shows content of an old custom cell after reload but selecting it pushes to correct data
You can try this , [tableView reloadData]; You can write this in cellForRowAtIndexPath BANFCell *cell = (BANFCell *)[tableView dequeueReusableCellWithIdentifier:nil forIndexPath:indexPath];

Categories : IOS

Accessing the content of a enum with an owned pointer in a for loop
Variables in match cases are moved by default. You are not allowed to move x, because everything in loop is immutable. To get a reference to x str you need to use ref keyword: &Baz(ref x) => *x == ~"asdf"

Categories : Rust

ajax not loading content in DOM
Shouldn't you define the readystate function before sending the request? part 2. It looks like your printdiv function submits a form. You should be able to remove the form tags if you are using a strictly AJAX procedure. You'll need to adjust a few other things to make that work.

Categories : PHP

Content loading with Ajax and Jquery
First try something like this: $.get('/includes/test-info.html', data, function(data){alert(data);}) And then you'll be able to see exactly what is being returned.

Categories : Javascript

JQuery Ajax Content Loading
You can give the links you don't want affected a class then exclude the class in your selector <a href="..." class="noajax">...</a> $(document).on('click','a:not(.noajax)',function() {

Categories : Jquery

other content seen and blinks during tinymce loading
You can add style="display: none;" on you buttons and then do this in your tinymce configuration: tinymce.init({ ... setup: function(editor) { editor.on('init', function(e) { $("#doc_send_email").css("display", "block"); $("#pritn_pdf_btn").css("display", "block"); }); } });

Categories : HTML

How to add ProgressDialog while loading content from web view
You can get to know how much the page has loaded from webview.setWebChromeClient(new WebChromeClient() { public void onProgressChanged(WebView view, int progress) { if(progress == 100){ // Page has fully loaded. Cancel the progress dialog here } } }); You can read it from here

Categories : Java

add loading animation during content replacing
Here is an example as you have described where there is no "white" flash. I made a massive sample html document to exaggerate things. As soon as it loads, I replace it with a loading message, then prepare the new content. After the new content is ready, I replace the old document with the new one and then add the new content to it. Smooth and fast. I still think what you are doing is a disaster, but if you must, View this in chrome! here's an example (click here for live demo). var script = '<script>console.log("New Document script tag is working.");</script>'; var newDoc = '<!DOCTYPE html><html><head>'+script+'</head><body></body></html>'; var loading = document.createElement('p'); loading.innerText = 'Loading...'; $(document).rea

Categories : Javascript

Live ajax content loading
sleep(5) stops PHP execution, so nothing is returned back to the browser until execution terminates. Javascript has to wait 5 seconds more to get back the entire response, that's it. If you want to split the response into multiple parts you'll have to make two Ajax requests successively.

Categories : PHP



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