JQuery :: Modifying ExpCollGroup Function In Share Point 2003
Nov 10, 2010
I am trying to modify the ExpCollGroup function within Share Point (2003) and don't have access to server or ows.js file where the function lives. I want the ExpCollGroup function to run (I'm using it to expand/collapse documents in a document library), and then when finished, want to be able to run my own function like DoSomething(). The below code works but fires before the ExpCollGroup code executes. What can I do to make the ExpCollGroup function execute, and then perform my DoSomething function?
$('[id^="img_"]').click(function() {
alert(The Expand/Collapse button was pressed but the loading of documents has not yet begun');})
This sci calculator listed in [URL] has Round function which rounds the result to a nearest integer. I wonder if it possible to easy modify it so that it would leave two numbers after decimal point when it perform rounding? The calculator's script has these codes related to Round: <INPUT style="WIDTH: 74px; HEIGHT: 31px" onclick="Round()" type=button size=24 value=Round> And function Round() {form1.display.value=Math.round(form1.display.value);} I tried {form1.display.value=Math.round(form1.display.value,2);}, but it did no do it.
First though JS is not my strong suit and the above code is something I found at the W3School site or whatever it is. What I would like to do if possible is add a Cancel button to the alert box that when clicked cancels the form submission it's attached to and keeps the user on the current page to modify the data they entered in to the form should they want to change it. As it stands, all there is is an Ok button and if you click the red x in the corner it acts as if you clicked ok so if a user wanted to change their form data they'd have to close the browser to start again. Aside from liking to add a cancel button I would also like to if possible change the alerts Ok button to read something different. Not sure yet, thinking either Submit or Proceed.
I wrote a script that uses onmousedown and onmouseup in javascript that works great in ie and firefox on windows2000. It looks as if the pocketpc 2003 ie browser dosn't support onmousedown or onmouseup and only such as onclick.
I need to be able to submit a form when the mouse is held down on a button and submit a different form when the mouse is lifted up from the button. could anyone tell me of anything I could substitute onmousedown and onmouseup with, i know onclick could substitute for on mouse up but i'd prefer not to but i still need somthing for on mouse down.
A web application is essentially one page with a bunch of popups that add and manage the data accumulated in the main or first page. The first page loads the jQuery library along with a bunch or plugins.
The modal popups contain an iFrame whose source is a different page. The source page also contain the jQuery library and pretty well the same plugins in most cases. The pages all use jQuery as a base for most of its client side processing.
At times the modal popups can be 4 or 5 deep. One popup is launched from the previous etc..
These libraries might total some 300k bytes or so.
Is there some way to avoid having to reload all the libraries each time a page is loaded. How can jQuery on the main page be used by all subsequent page.
I'd have to be using the libraries as it they were loaded as part or the page and not having to refer to the parent objects for example.
Could some script be run at the start of each page to load the javascript library form the previous page?
Can the jQuery library or anypluginwritten using jQuery beregardedas a singleJavaScriptobject that can be replicated from the parent page?
Problem is, obviously, this animates all 6 buttons. I could write individual functions for each element but that seems wasteful. I'm assuming there is a way to do this in a more efficient manner.
Could anyone tell me how to create a user-object using javascript in a HTMl page and access the same object in another HTML page? Assume that i would like to create the user-object myObj in HTML page1, set some value to its property and then i would use location.href to load HTML page2 in the same window. Is there a way to access the user-object myObj in page2 script and read its property value?
Yesterday I made a tabbed auto-switching ad block in ActionScript. You can see it here:http://vtribes.com/inc/swf/services.htmlThis morning I decided I needed some fall back content for those odd types who still refuse to either use Flash plugins, or don't have the latest version. So I came up with a simple CSS/JS table with tabs to replicate the Flash movie, and thought I'd share it for anyone who might be interested.You can find it here:http://vtribes.com/inc/tabbedTable.htmlIt's very simple, but would work just fine if you wanted a tabbed dialog in HTML. It will also explain some rudimentary points in CSS, JS and HTML.
I have a web page that is not and will not be hosted on a web server. So no PHP, ASP solutions will work here. The method of access is File://. We only run IE 7/8 so no solutions that are firefox only. Here is what I want to do: Use javascript to build a table by reading a XML file stored in the same folder. When I try to use something like:
[URL] In this link example, you will see the Facebook/Twitter share buttons on the upper, left-side. When you attempt to share this page to your Facebook friends, by default, it shows a random image on the page, when IT SHOULD be showing the post avatar of the bicycle wheel. How can we modify the script to capture this bicycle wheel avatar by default?
So I have a wordpress site I'm just quickly prototyping the design of for my 3D portfolio.I'm using an iframe to display another html page I have for my resume. I want to use jQuery to remove the css paddingYou can see the code that wordpress outputs over herePageCodeThe iframe code in specific is
I'm trying to make a blog and I am facing a problem with the plugin using jQuery 'sidebarTabs'.
The blog is here Paris sportifs My question is: Is it possible to display no one sub-category(none) instead of all sub-categories related to the first title ('Paris Sportifs') The creator of the plugin was very friendly and made me good service, but he said that it is not possible because the jQuery library by default is set to display the first sub-section ('Les bases pour débuter etc
sorry for the stupid question but how can i modify the href atribute of the link without having a id of the "<a>" just because it's the link of an image with an id?
How can jQuery locate a non-predetermined DOM insertion point? My application relies on custom code to "bootstrap" itself. I'm wondering if similar functionality is available in jQuery?
My app works in the following fashion: - user places a script tag in their web page. - my script fires and performs the following routines: - scriptLocation = whereAmI()? (find scripts in document, length -1) - insertBefore(DIV, scriptLocation); - use DIV as canvas, DOM target for all that follows - install application in DIV
Note that my custom app does not wait for any kind of "ready" state. It has no dependencies on the surrounding document. It fires inline. My impression is that jQuery's approach ("Find something, do something") is incompatible, because it relies on a known DOM insertion point. It would seem straightforward to "query" the DOM, and find an element of known ID. That would conflict with my business constraint; I have no control over the destination page. Are my assumptions about jQuery true? Or is there a way for a jQuery script to wake up, find its location, and the install elements there?
on my contact page, I have some hidden divs. One is for a google map. This div is only shown when the user has clicked to open the div. As I am working with smarty my template looks like this: <span id="gmap"> literal}
in FCK-Editor I would like to do the following:On one page there should be severalHeaderText under the header, which is hidden, when the text is loaded and slides up and down after click on headerHtml, which is easy to edit with FCK could look like this:
<p><a href=""><span class="click">Header</span></a></p> <p><span class="text">Text under the header, which is hidden, when the text is loaded.</span></p>