webpage

stop scrolling of webpage with jquery

拟墨画扇 提交于 2019-12-01 13:08:50
I am using a query bumpbox plugin with the webpage, I am working on but I can still scroll away from the bumpbox when I am using it. I was wondering if there was some sort of jquery method that will keep the webpage from scrolling or just scroll the opposite way with the same distance that the user scrolled. It's hard to be specific with no code posted, but to prevent scrolling you could do something like : $(window)​​.on('scroll', function() { $(this).scrollTop(100); //sets the scrollposition to 100px })​​;​ FIDDLE Easiest way to achieve this $("body").css("overflow", "hidden"); 来源: https:/

Trying to display data from an SQL database using vbscript

风流意气都作罢 提交于 2019-12-01 12:16:45
I am trying to set up a connection to my SQL server inside of a VBScript. Whenever I have a connection to my SQL server there is an error on the webpage that says "There was a problem processing the URL" and to contact the administrator. I know my connection string is correct because it works on all the others pages. Here is the code I am using so far to set up the SQL connection Const SQL_Connection_String = "Provider=sqloledb;SERVER=SQLPROD;DATABASE=MyDataBase;UID=MyUsername;PWD=MyPassword;" Set SQLConnection = CreateObject("ADODB.Connection") SQLConnection.provider = "ADODB.Connection" Set

Which web browsers apply a default CSS margin/padding on the body element by default?

[亡魂溺海] 提交于 2019-12-01 12:08:59
What web browsers apply a default CSS magin and/or padding on the body element by default? I know Google Chrome applies a 8px margin, and I've heard that other browsers have a default padding as well. Thanks! Most browsers have default margin for body element. IE9 gives 15px vertical and 10px horisontal, Opera 11 gives 8px, yet this can and does change between versions, so you realy should incorporate css reset in your stylesheets, be it home-brew padding:0;margin:0; , Eric Meyer's or YUI . wsanville Just use a simple test page, like this one, and try all the browsers you're interested in.

How to change default page of odoo with other webcontroller odoo 9.0

北城以北 提交于 2019-12-01 11:30:40
问题 I have created a new webcontroller with specific functionality and I want this webcontroller as a home page of odoo 9.0 . I have tried to put @http.route('/', type='http', auth='public', website=True) in main.py of my custom webcontroller file as a route, but still it redirect to default home page of odoo. But if I put url as @http.route('/index', type='http', auth='public', website=True) , the page is working fine. So my question is what is best way to replace existing odoo home page with

RFID reader integration with web page [closed]

大城市里の小女人 提交于 2019-12-01 09:52:36
I have a problem regarding RFID card reader integration to a web page. I found out that the solution is to achieve this ActiveX component and java script. so, my question is that how can we build a ActiveX component for card reader and the java script Codeline to access this activex Component. Or if you can suggest an alternate way to integrate RFID reader to communicate directly with a web page, that would be great. SpringCard provides a technical guide and a live demo for developing a web page communicating with a PC/SC reader using Java applet. You will find it at the page, under Other

Page viewer webpart won't take login parameters

≯℡__Kan透↙ 提交于 2019-12-01 09:50:47
I need to show an external site through our sharepoint portal and have added a Page viewer web part. The problem is that the address includes a login and password used to autologin to the external site but Sharepoint only shows the login page on click. If I click the "Test link" in the web part properties it opens as it should but in a different window and not in the sharepoint frame. The adress has the format http://www.site.com/companyname/Login.aspx?style=companyname&lang=en&l=login&p=password How can I get the autologin to work in the frame used on my webparts page? Any help very

How to check for webpages' popups?

帅比萌擦擦* 提交于 2019-12-01 09:48:55
问题 Is there a possibility if I code a program in python that allows to automatically browse a given website using mechanize to detect if there are popup windows (suggesting advertisements or downloading actions ...) using Python ?. I would appreciate any hint (for example, if you give me a library that fulfills this task I would be very happy) 回答1: Mechanize cannot handle javascript and popup windows: How do I use Mechanize to process JavaScript? Mechanize and Javascript To accomplish the goal,

C# - Pass string to textbox in web page using the webbrowser control

萝らか妹 提交于 2019-12-01 09:03:13
问题 Is there a way to take the value of a string and pass that to a textbox within a web page while using the webbrowser control? 回答1: HtmlDocument doc = this.webBrowser1.Document; doc.GetElementById("myId").SetAttribute("Value", "someValue"); try this 回答2: You can do something like this: String newValue = "Sample Text"; HtmlElement txt = WebBrowser1.Document.GetElementById("ElementIdOnHtmlPage"); txt.SetAttribute("value",newValue); 回答3: You can do the browser automation in C# for WebBrowser

Trying to display data from an SQL database using vbscript

北城余情 提交于 2019-12-01 07:35:10
问题 I am trying to set up a connection to my SQL server inside of a VBScript. Whenever I have a connection to my SQL server there is an error on the webpage that says "There was a problem processing the URL" and to contact the administrator. I know my connection string is correct because it works on all the others pages. Here is the code I am using so far to set up the SQL connection Const SQL_Connection_String = "Provider=sqloledb;SERVER=SQLPROD;DATABASE=MyDataBase;UID=MyUsername;PWD=MyPassword;

VBA code to wait until file download from IE is complete

做~自己de王妃 提交于 2019-12-01 07:32:24
问题 I'm trying to download an excel file from a webpage and so far I was able to open the webpage, navigate and click on save button but I need to access that excel file once it is downloaded. But sometimes it takes time to download depending on the size of the file. Is there any way we can check the window and see if the download is complete and only then to proceed to open the downloaded file. Below is the code. Dim o As IUIAutomation Dim e As IUIAutomationElement Set o = New CUIAutomation h =