I've created links in the listview which is attached to the datapager. When a user clicks a link they see content to the left but the datapager changes from any page to page 1.
Hi,
I have created a business page on facebook and added application to a tab.
I want to retrieve the uid of the users who visit the tab. I am using $_POST['fb_sig_profile_user']
But it give the page id not the uid.
Please help me on this.
Thanks
Pankaj
I have photo gallery code that does image re-sizing and thumbnail creation. I use ImageMagick to do this. I ran a gallery page through Google's Page Speed tool and it revealed that the re-sized images and thumbnails both have about an extra 10KB of data (JPEG files specifically).
What can I add to my scripts to optimize the file size?
Hello!
I'm making a website that requires ads being repeated down the length of a page with dynamic length. I want the ads to be displayed down the entire length of the page, but I won't know that length until after the data has been displayed. Is there built in functionality for this in .NET? If not, does anyone see any workarounds I could employ to do this for me?
Thanks!
We are experiencing a problem with each instance of the call to the simplemodal div class .basic-modal-content adding an extra next or previous button in the modal windows.
We are using simplemodal in four places on a page using a common JS in the container (provided below) and a common CSS format for the modal windows.
In one area we are using six "statements" in a window with a next and previous button. I would include a picture of the modal window but it's being disallowed by the system as I'm a first time poster to this forum.
In the other three areas we are using three "biographies" in a similar window with the ability to see each of the three bios from each of modal windows.
We are using a common Simplemodal JS script in the page which has the following code:
<script>
$(function()
{
$('a').each(function()
{
$(this).click(function()
{
$('#modal_' + this.id).modal({
overlayClose:true
});
});
});
var num_divs = $('div.basic-modal-content').length;
$('div.basic-modal-content').each(function(i)
{
/* if there is a previous div add a link to it
*/
if (i > 0)
{
/* get the ID for previous div
*/
var prev_id = $(this).prev('.basic-modal-content').attr('id');
/* add the link with click event
*/
$('<a href="#" class="simplemodal-container-prev"></a>')
.click(function()
{
$.modal.close();
$('#' + prev_id).modal({overlayClose:true});
})
.appendTo($(this));
}
/* if there is a next div add a link to it
*/
if (i < num_divs - 1)
{
/* get the ID for next div
*/
var next_id = $(this).next('.basic-modal-content').attr('id');
/* add the link with click event
*/
$('<a href="#" class="simplemodal-container-next"></a>')
.click(function()
{
$.modal.close();
$('#' + next_id).modal({overlayClose:true});
})
.appendTo($(this));
}
});
});
</script>
and some CSS to create an image for each window that shows the progress bar through the ul/li list.
The code to produce the above looks like this:
<h1>Our HEADLINE</h1>
<div id='basic-modal'>
<ul>
<li><a href='#' id='one'>TEXT 1</a></li>
<li><a href='#' id='two'>TEXT 2</a></li>
<li><a href='#' id='three'>TEXT 3</a></li>
<li><a href='#' id='four'>TEXT 4</a></li>
<li><a href='#' id='five'>TEXT 5</a></li>
<li><a href='#' id='six'>TEXT 6</a></li>
</ul>
</div>
<div class="basic-modal-content" id="modal_one">
<img src="link to modal_one.png" alt="progress bar"/>
<h3>headline text</h3>
<p>body text</p>
</div>
<div class="basic-modal-content" id="modal_two">
<img src="link to modal_two.png" alt="progress bar"/>
<h3>headline text</h3>
<p>body text</p>
</div>
<div> ... other divs 3 4 and 5 </div>
<div class="basic-modal-content" id="modal_six">
<img src="link to modal_six.png" alt="progress bar"/>
<h3>headline text</h3>
<p>body text</p>
</div>
</div>
The ul/li structure works on the main page for the links. The modal windows allow one to browse through all of the six TEXTs. There is a common CSS style to the windows and a custom image in each of the modal windows derived from the "#modal_[number] img" CSS in the form of a progress bar.
It should be noted that the first modal window in the first set of ul/li (the six) do not exhibit the extra previous button.
Here is the relevant code from one of the three biographic links. You will note that the biographic links each have to have all three in this current configuration.
<h4>Our HEADLINE</h4>
<div class="bottom-widget-text">
<img src="picture" alt="not relevant to the simplemodal problem"/>
<p>Read about person NUMBER 1 by clicking on the following link:
<a href='#' id='seven' >Expand</a>
</p>
</div>
<div class="basic-modal-content" id="modal_seven">
<img src="link to modal_seven.png" alt="portrait 1"/>
<h3>headline text</h3>
<p>BIOGRAPHY</p>
</div>
<div class="basic-modal-content" id="modal_eight">
<img src="link to modal_eight.png" alt="portrait 2"/>
<h3>headline text</h3>
<p>BIOGRAPHY</p>
</div>
<div class="basic-modal-content" id="modal_nine">
<img src="link to modal_nine.png" alt="portrait 3"/>
<h3>headline text</h3>
<p>BIOGRAPHY</p>
</div>
</div>
Similarly the "biographies" open up from a different area of the page. The modal windows allow one to browse through all three of the BIOs. The bios use the SAME CSS style windows and a custom image in each of the modal windows derived from the "#modal_[number] img" CSS in the form of a portrait.
Everything is working well except one thing: the first six windows have an extra next button that leads to an image of the close widow button only.
Similarly, the BIOs pages have extra previous button that leads to the same "close button only" shown above.
We want to maintain the same base CSS for the modal windows for this page. We want to keep the JS simple. The only behavior that is bad is the extra previous and next bottons that appear to be spurious.
So is this a fix to the JS?
Or do I have the instances of the modal windows too entangled?
Perhaps there is a better method for having multiple instances of a simplemodal window on the same page?
Or is the problem the "#" variable being common to each of the uses of the JS?
Thanks in advance.
DDF
On webpart-pages it is possible modify the contained webparts over the Web by using Site Actions-Edit page.
Is there a possibility to view the version history of such a page?
When you create an ASP.NET page with no controls and runs it, a view state hidden field is added.
Looking at what's in it (with ViewStateDecorder) reveals that there's a single value there that contains a number.
My question is - what is this number?
P.S. I guess this value appears on every page, with or without controls.
I have a full page flash animation. When this page is open at Firefox and I want to minimize or re-size Firefox screen, minimize button starts to blink and Firefox does not take any action till this tab is closed.
There is not too much code in the flash file. What can cause this?
Hello,
is it possible to have links on the welcome page which point to defined commands and for example, launch an dialog?
I am thinking of having a welcome page, pointing out the steps what to do first, like:
1) change language (click here)
2) set up database connection (click here)
3) start working (click here)
"click here" should be a link to call the actual dialog to set things up. I am using Eclipse with the command style menu.
Grateful for any suggestions!
Hello everyone
I am using UIWebView to load a web page.
There are 2 questions:
1.It it possible to track the percentage progress when UIWebView is loading the page?
2.I know there is property scalesPageToFit
scalesPageToFit
A Boolean value determining whether the webpage scales to fit the view and the user can change the scale.
I try to set it to YES, but it looks like that it is not in public API and my app stopped with black screen, I am not sure what is wrong?
Welcome any comment
Thanks
interdev
If page footer data 4000 character then I want to print on first pager footer from 0 to 1750 character and next pager footer I want to print from 1751 to 3500 and next page I want to print from 3501 to 4000 characters.Can anybody help me to solve this problem.
Thanks,
Raj
Hey,
I'm using the Google CDN to load my JQuery file. However, I'd like to have my master page use a separate theme to my content page. Is this possible when using the CDN? I'm using ASP.NET.
Thanks for any help
Hey everyone,
I have CSS and HTML that I will be converting into PDF. I want to specify a header on each page that, in the PDF, will repeat on each new page.
I know that I can use THEAD to specify the header, however, is there a free html-to-pdf converter that will respect the THEAD tag?
If not, are there any alternatives?
Thanks...
Hi,
I would like to use a UIWebView to display some files (PDF, PPT, DOC) and would like to have the ability to scroll using external controls (ie a couple of buttons that, when pressed skip back and forward a page) and display the current page in a UITextView. Is this possible?
I have no experience with javascript, but a friend of mine has suggested that this might be a useful approach. Is his suggestion valid?
JP
Is there a way to force an RCP product to show a welcome page every time it the RCP was stared? (By default, the Welcome page is only shown for the first time the RCP is stared.)
I tried org.eclipse.ui/SHOW_INTRO=true in plugin_customization.ini, but it did not do the trick...
Thanks,
Frank
How would I Redirect user in php without revieling referer of page that redirected
I figured I'd simply do something like this :: ( code example 2 ) ::
http://www.mustap.com/phpzone_post_62_how-to-bypass-the-referer-se
with the Get method , Simple example of what im trying to do is redirect to google without the referer of the php page I am referred from.
thanks
This is my rewrite regex: ^([0-9]+)|/(.*)$ for rewrite 1234\article-name to article.aspx?id={R:1}.
The problem is: if the url is 1234, the page views count is increased with 1.
but if the url is: 1234/article-name the page views count increased in 6.
Any idea what is the problem and how to fix it? maybe the problem is with the regex.
How can you open windows program by pressing a button on web page
I develop web app in asp.net, and I want to do some action in windows when press button on
the web page,
For example: when you press Messenger button in http://www.msn.com/?ocid=hmlogout
windows live messenger will open in your computer,
Is there a certain technique to do that ?
thanks for any suggestion.
Dani.
whenever i needed to test my web site, i used to press ctrl and f5.
i recently installed installed iis service.
kept an html page accessed it from host
kept an fully developed default.aspx page in the www directory
tried to access gave error of XML something....
that means i can only use HTML pages,
?
so what to do if i am using c# asp.net?
When I try to open a project's CodeAnalysis page I get the error
"An error occurred trying to load the page.
Only TrueType fonts are supported. This is not a TrueType font."
I also get a very simmilar ExceptionBox when I want to open the solution's propertywindow:
"Only TrueType fonts are supported. This is not a TrueType font."
Has anyone experiences with this error?
How do you cache an aspx page call on the client?
The aspx page returns an asset and looks like this:
http://srv-edu-build/edumatic3/dev/RetrieveBlob.aspx?assetId=31809&assetFileId=9823
We have tried with Output Cache, with caching in the code behind, but the only result we get is server side caching (by IIS7).
In the header of the response cache-control is set to public and expiration time is set (to 14800 as set in output cache profile).
We need to save the selected new page size to a session.
We have tried the PageSizeChanged event but the NewPageSize returns 0.
Is there a way we could get the new page size value? How? Thanks.
Hi Guys, I have a clients website - www.stagecraft.co.uk and they want the navigation on the hire pages (longer page) to still be there at when you scroll the page down. I've had a quick go (not live) with position fixed but in doing so it the leftside navigation is about 200px or so from the top of the window. Any when to get it at the top of the window when scrolling?
Thanks in advance....
Hello,
I integrated my vBulletin with custom front page. I'm wondering, how could I use vBulletin BBcode on that page (I'm displaying some posts there).
Any suggestions?
We have a Silverlight control embedded in an html page. When I zoom the html page in FireFox 3.5 (ctrl - +) and then try to click on something in the Silverlight control the mouse input is not taken at the correct place.
I have to click above the control to get it. This behavior can be seen here:
http://silverlight.codeplex.com/
Any idea how to fix this?