Hi -
I have in my website a PHP page which retrieves data from my database to be presented in my website. This page is called via AJAX. How can I restrict the access to it only from pages within my website so users who wants to abuse it and get this data not from the website (e.g. posting HTTP request from their server) itself won't be able to do so ?
Is there design time support in VS2008 for SharePoint Application Pages?
I've wrote an SPService and I want to develop an UI for the properties
who are necessary for running this SPService. But I can't manage to get
design time support in VS2008. I'm creating an custom ASPX which inherits
from GlobalAdminPage and has the "_admin/admin.master" masterpage.
Thanx in advance!
Hi all,
I want to implement a functionality similar to found in Pages app..i.e. text floating around images, image zooming etc.. I have been struggling with this part of my application but no success yet. Would be grateful if someone provides me with some pointers in this regard , like 'Which UIControl should I use?','Help in thinking logic' etc..
Thanx in advance.
I am a newbie to jQuery Mobile and trying to come with the best and scure way of passing login details between pages in jQuery Mobile.I did a quick search and found some solutions,
Solution 1 :Since its the same dom data can be accessed using plain old variables.
Solution 2 :Use HTML5 sessionStorage
I have not found anymore solutions yet.If some one has successfully implemented this,could you please advise how I should go about doing this?
Thank You
where to add the new GUI xml pages in android project, say I have a welcome screen in reslayoutmain.xml layout and when user clicks "next" button, it has to load up a new page with username and password GUI. any help will be appreciated
Hi,
how do I download and archive full web pages (HTML, CSS, JS, images) on the iPhone?
I know how to download the single files. But is there any existing approach to get all files (e.g. all included javascripts), which are linked with a particular web page?
We are using VB.NET and ASPx for our project. we would like to separate the aspx pages and put them on the IIS server (web server) on one m/c and the business logic and DAL layer on another IIS server (application server) on a different m/c .The database is on another m/c. Is such a configuration possible ? If so how can it be implemented?
I'm working with a UIWebView loading local (i.e. in the source bundle) html pages, ala Apple's Transweb example. Loading the first page is trivial. However, I have added a second html page and linked to it from the first. Attempting to link to a second page doesn't seem to work.
Anyone know how to make this work?
Thanks.
All,
I had a question on hosting.I have Pages that are written in php or JSP and is hosted on a server .And if a user enter say http://x.com in the browser, the main.php or main.asp page will be displayed.My question is there a way to hide the extensions..
Thanks...........
I have a pagination script that displays a list of all pages like so:
prev [1][2][3][4][5][6][7][8][9][10][11][12][13][14] next
But I would like to only show ten of the numbers at a time:
prev [3][4][5][6][7][8][9][10][11][12] next
How can I accomplish this? Here is my code so far:
<?php
/* Set current, prev and next page */
$page = (!isset($_GET['page']))? 1 : $_GET['page'];
$prev = ($page - 1);
$next = ($page + 1);
/* Max results per page */
$max_results = 2;
/* Calculate the offset */
$from = (($page * $max_results) - $max_results);
/* Query the db for total results.
You need to edit the sql to fit your needs */
$result = mysql_query("select title from topics");
$total_results = mysql_num_rows($result);
$total_pages = ceil($total_results / $max_results);
$pagination = '';
/* Create a PREV link if there is one */
if($page > 1)
{
$pagination .= '< a hr_ef="?page='.$prev.'">Previous</a> ';
}
/* Loop through the total pages */
for($i = 1; $i <= $total_pages; $i++)
{
if(($page) == $i)
{
$pagination .= $i;
}
else
{
$pagination .= '< a hr_ef="index.php?page='.$i.'">'.$i.'</a>';
}
}
/* Print NEXT link if there is one */
if($page < $total_pages)
{
$pagination .= '< a hr_ef="?page='.$next.'"> Next</a>';
}
/* Now we have our pagination links in a variable($pagination) ready to
print to the page. I pu it in a variable because you may want to
show them at the top and bottom of the page */
/* Below is how you query the db for ONLY the results for the current page */
$result=mysql_query("select * from topics LIMIT $from, $max_results ");
while ($i = mysql_fetch_array($result))
{
echo $i['title'].'<br />';
}
echo $pagination;
?>
So, I am trying to use JSP to create a set of webpages. I want to link two pages so that if the user clicks a button in one page, it will trigger an event in the other page. Is there an efficient way to do this?
I was taking a look at creating cookies and/or sessions. Any suggestions on these two methods? Thanks
how to show our pages in php like this :
http://www.mysite.com/about/
i used this code in httaccess :
RewriteRule ^/(.*)/ opp.php?op=link&slug=$1 [L]
it works when i remove earlier / but style of the page failed to show
Is there a way to give LaTeX a hint on the maximum number of pages I would like the document to have, so LaTeX at least tries to not exceed this maximum if possible?
Are there any known flaws with htaccess protected pages?
I know they are acceptable to brute force attacks as there is no limit to the amount of times someone can attempt to login. And a user can uploaded and execute a file on the server all bets are off...
Anything other .htaccess flaws?
I'm using a sitemap and a menu control. I have a search and list page that I want to highlight the same same item in the menu control. For example, Search Widgets menu items will be (Search.aspx) and the List Widgets will be (List.aspx). The sitemap will have a single entry for "Widgets", but I need both pages to map. Any idea on how to do this?
For an intranet application instead of using a proper web server, it has been planned to just deploy static html pages by sharing it over the network. This static html page is continously updated in the background by a program running on that PC and people access this html page by typing the shared file path directly in the browser. A maximum of 10 simultaneous users are expected to access it.
Can any one see the disadvantages or advantages in this type of deployment?
Hello,
I'm wondering the opinion of what is the best way to pass a lot of values between pages. I was thinking of either saving the values to a database, using context.Items[], or Session[]. I'm not sure about what is the best method. I'm passing probably around 40 variables.
I need to pass a dollar amount from one webpageto another webpage without letting the user modify the values when the values are passed between these pages.
ie Page 1 (entry page) to Page 2 (confirmation page)
What is the best way to do this?
hi,
in my application i am using master page and child pages. my requirement is can i access the master page controls in child page exmaple in my master page i have a linkbutton how can access in childpage