Jump to content
Xtreme .Net Talk

caeanis

Avatar/Signature
  • Posts

    40
  • Joined

  • Last visited

caeanis's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I have a Sharepoint aspx page that I want to play a media file which is determined by the link that is clicked to navigate to the page. So, if the user clicks the first link, it navigates to video_sandbox.aspx?pathtovideo.wmv On the sharepoint page (video_sandbox.aspx) I use request.querystring to retrieve the path of the file and I want to then insert it as the src or url of the mediaplayer object. This doesn't seem to be working. I've tried writing it both via javascript and vbscript. I don't have access to the masterpage that the video page is based on so I can't put it in a script of that master. Any suggestions? I have posted the versions of my code below: Javascript: <Code> // This works var path = "/Videos/" + Request.QueryString("vid"); // this does Not work document.all.vid.url = path; </Code> VBScript: <Code> Dim path ' This works path = "/Videos/" & Request.QueryString("vid") ' this does Not work document.all.vid.url = path </Code>
  2. Nm. It occurred to me that I answered my own question.
  3. I have a large document which is segmented into chapters. I have a lot of bookmarks in it which are referenced as links in other parts of the doc. What I want to do is preview a snippet of the text (say the innertext of the bookmarked paragraph). I've figured out how to create a div tag that will appear just to the right of the clicked link, but I'm not sure what the bestway to put text in it. Using a webresponse stream seems like an inefficient way to grab the text, I'm wondering if there is a simpler way to retrieve the inner text by calling the paragraph's id and returning the innertext... In any case is there a better way to accomplish this?
  4. Nevermind, I figured it out. When you click on Add Service Reference you can't select the reference from there, you click on the advanced button in the lower left corner which takes you to the Web Service dialog.
  5. I am trying to write a windows form app that allows me to update a Sharepoint List. Every example I've seen says that once add a web reference to the list using http://server_name/_vti_bin/Lists.asmx you can use that reference to create web service instance, a method of which is List so a declaration should look like Dim listService As New sp.Lists() or Dim listService as sp.Lists = New sp.Lists() However, when I create the reference, Lists is not a method under the namespace sp which is what I called my web service reference. when I type "sp." Lists doesn't appear in the intelli type drop down as an option. I get all sorts of other things like ListsSoapClient and GetListRequest, but not Lists. What am I doing wrong?
  6. Hi Was wondering how you approach your Siebel screen scrapping issue.I need to do the same thing,could you give me a summary to your approach.I would really appreciate it Thanks Vickus
  7. I know that you can select a particular row or cell but I want to raise the mouseclick even on a particular cell as I have code in the mouseclick even that I'd like to execute. Does anyone know how I can do this?
  8. That is great! Thanks for the tip! I don't suppose you might have a snippet of code that demonstrates how they access a particular list do you? I'm trying to find an API guide that will show me how to find the particular control I want to get data from. Not sure if I have to access the control down through a rigid dom or whether I can directly access the list once I have it's handle or id or whatever.
  9. Very interesting! GetClipboardSequenceNumber... Sound promising. I figured out how to capture the paste event from within the textbox control, by overriding winproc, but now the custom text control doesn't appear on my form. Sigh. :(
  10. I have a custom textbox class that is set public scope. I created it because I needed to override the WndProc sub to handle paste messages sent from this control. The problem I'm having is that when the form is compiled, I get no error messages but the textbox doesn't show on the form. I've posted my code below, and would appreciate any observations on what I missed. I'm sure it's something simple... Public Class optyTextBox Inherits System.Windows.Forms.TextBox Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message) Const WM_PASTE As Int32 = &H302 Select Case m.Msg Case WM_PASTE ' The clipboard contents were pasted... 'Code to handle paste event. End Select End Sub End Class Shared WithEvents txtZip As optyTextBox Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load txtZip = New optyTextBox txtZip.Name = "txtZip" txtZip.Font = New System.Drawing.Font("Tahoma", 6.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) txtZip.Location = New System.Drawing.Point(142, 160) txtZip.Margin = New System.Windows.Forms.Padding(2, 3, 2, 3) txtZip.Size = New System.Drawing.Size(59, 18) txtZip.TabIndex = 28 txtZip.Visible = True ' Shouldn't this work? Me.Controls.Add(txtZip) txtZip.Show() ' I tried using this line to see if it forced the control to 'be visible but no dice... End Sub
  11. Ok I see what I did wrong, WM_PASTE is a message sent from the app to the window or control I'm pasting into. It is NOT a notification which is why it doesn't trigger as a notification. So, it appears that it isn't possible, at least not the way I'm trying to do it.
  12. Ok I found some code that allows me to access the win32 clipboard and functions however it doesn't appear to be working. I added the code below to the form1.vb module. Does this appear to be correct? <code> #Region " Definitions " 'Constants for API Calls... Private Const WM_DRAWCLIPBOARD As Integer = &H308 Private Const WM_CHANGECBCHAIN As Integer = &H30D Private Const WM_PASTE As Integer = &H302 'Handle for next clipboard viewer... Private mNextClipBoardViewerHWnd As IntPtr 'API declarations... Declare Auto Function SetClipboardViewer Lib "user32" (ByVal HWnd As IntPtr) As IntPtr Declare Auto Function ChangeClipboardChain Lib "user32" (ByVal HWnd As IntPtr, ByVal HWndNext As IntPtr) As Boolean Declare Auto Function SendMessage Lib "User32" (ByVal HWnd As IntPtr, ByVal Msg As Integer, ByVal wParam As IntPtr, ByVal lParam As IntPtr) As Long #End Region #Region " Contructor " Public Sub New() 'To register this form as a clipboard viewer... mNextClipBoardViewerHWnd = SetClipboardViewer(Me.Handle) InitializeComponent() End Sub #End Region #Region " Message Process " 'Override WndProc to get messages... Protected Overrides Sub WndProc(ByRef m As Message) Select Case m.Msg Case Is = WM_DRAWCLIPBOARD 'The clipboard has changed... '########################################################################## ' Process Clipboard Here :)........................ '########################################################################## SendMessage(mNextClipBoardViewerHWnd, m.Msg, m.WParam, m.LParam) Case Is = WM_CHANGECBCHAIN 'Another clipboard viewer has removed itself... If m.WParam = CType(mNextClipBoardViewerHWnd, IntPtr) Then mNextClipBoardViewerHWnd = m.LParam Else SendMessage(mNextClipBoardViewerHWnd, m.Msg, m.WParam, m.LParam) End If Case Is = WM_PASTE ' The clipboard contents were pasted... Select Case intCtrl Case 0 Clipboard.SetText(txtStrNum.Text) intCtrl = 1 Case 1 cmdParse.PerformClick() intCtrl = 2 Case 2 If isOptyTeam = False Then isOptyTeam = True Else Clipboard.SetText(txtOptyName.Text) intCtrl = 3 End If Case 3 Clipboard.SetText(txtDue.Text) intCtrl = 4 Case 4 End Select End Select MyBase.WndProc(m) End Sub #End Region #Region " Dispose " #End Region </code>
  13. I have to do some basic data entry in a web app I don't have administrative access to. I am pulling the data to be entered from my own vb form app. What I'd like to do is monitor the paste event (if there is such) of the clipboard to automatically load the next piece of data into the clipboard so that I can right click and paste with out having go back to my form each time. Is this possible? I've seen a view examples in C# on how to monitor the clipboard change event, but am not familiar with C#. Thanks in advance.
  14. Is it possible to use a Panel control instead of navigating to a frame? I have a website that uses a header frame and then a vertical frame under it (not unlike the MSDN library). I am curious to know if I could achieve the same navigational functionality by using a panel in place of the right frame, so that when a link is clicked in the treeview, the page comes up in the panel. Does anyone know if this is possible or if there is another way to accomplish this without using frames? Thank you in advance...
  15. My team supports Siebel 7.8 where the client is basically activex controls embedded in a web page in several layers of frames. I want to know if it is possible to retrieve values from specific fields within one of those controls? I have used spy to find the classname of the control in question but from there, I'm at a loss for how use that info to retrieve the values. Screen Scraping using httpwebrequest doesn't get the data I'm looking for. Is it possible to use findwindow api's to pull the data?
×
×
  • Create New...